This commit is contained in:
zt
2025-06-05 11:37:27 +08:00
parent e3ada9fa9c
commit 53d9675807

View File

@ -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));