浏览代码

下载于hash

lyhzzz 3 月之前
父节点
当前提交
51910e02d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/fusion/service/impl/CommonUploadServiceImpl.java

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/CommonUploadServiceImpl.java

@@ -84,7 +84,7 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
 
 
             String ossPath = String.format(OssPath.MANAGE_MODEL_FILE_PATH, uuid + extName);
             String ossPath = String.format(OssPath.MANAGE_MODEL_FILE_PATH, uuid + extName);
 
 
-            tempFile = new File(OssPath.localPath + ossPath);
+            tempFile = new File(OssPath.localPath +File.separator+ ossPath);
             if(!tempFile.getParentFile().exists()){
             if(!tempFile.getParentFile().exists()){
                 tempFile.getParentFile().mkdirs();
                 tempFile.getParentFile().mkdirs();
             }
             }