소스 검색

模型下载,删除本地压缩包

dsx 2 년 전
부모
커밋
a7fddf2f42
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

+ 1 - 0
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -1032,6 +1032,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         fYunFileService.uploadFile(bucket, zipFilePath, "downloads/extras/" + zipName);
         //删除本地文件
         FileUtil.del(meshLocalPath);
+        FileUtil.del(zipFilePath);
         String url = ossUrlPrefix + "downloads/extras/" + zipName + "?t=" + Calendar.getInstance().getTimeInMillis();
         return ResultData.ok(url);
     }