dengsixing 5 bulan lalu
induk
melakukan
18c41b1e6a

+ 6 - 5
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -181,8 +181,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
 
             String ossPath = String.format(UploadFilePath.USER_EDIT_PATH, num) + "hotspot/" + sid + "/";
             Map<String, String> uploadMap = new HashMap<>();
-            //上传原图
-            uploadMap.put(origFilePath, ossPath + sid + "." + extName);
 
             //切图
             String fragmentCmd = "vips dzsave --tile-size "  + tileSize + " " + origFilePath + " " +  workPath;
@@ -220,10 +218,13 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
                 fYunFileService.uploadFile(entry.getKey(), entry.getValue());
             });
 
+            //上传原图
+            fYunFileService.uploadFile(origFilePath, ossPath + sid + "." + extName);
+
         }finally {
-//            FileUtil.del(workPath);
-//            FileUtil.del(dziPath);
-//            FileUtil.del(outFilesPath);
+            FileUtil.del(workPath);
+            FileUtil.del(dziPath);
+            FileUtil.del(outFilesPath);
         }
 
         Map<String, Object> hw = new HashMap<>();