Browse Source

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

dsx 2 years ago
parent
commit
a7fddf2f42

+ 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);
     }