优化
This commit is contained in:
@ -389,7 +389,7 @@ public class UploadZipController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 记录附件信息(更新文件名为MD5后的值)
|
// 记录附件信息(更新文件名为MD5后的值)
|
||||||
String newRelativePath = SAVE_DIR + File.separator + newFilePath;
|
String newRelativePath = firstLevelDestDir + File.separator + newFilePath;
|
||||||
newRelativePath = newRelativePath.replace("\\", "/").replace("ruoyi/uploadPath", "/profile");
|
newRelativePath = newRelativePath.replace("\\", "/").replace("ruoyi/uploadPath", "/profile");
|
||||||
|
|
||||||
String[] pathParts = relativePath.split(Pattern.quote(File.separator));
|
String[] pathParts = relativePath.split(Pattern.quote(File.separator));
|
||||||
|
Reference in New Issue
Block a user