dengsixing 6 months ago
parent
commit
9719c94912

+ 6 - 0
src/main/java/com/fdkankan/contro/service/impl/HaixinServiceImpl.java

@@ -72,6 +72,12 @@ public class HaixinServiceImpl implements IHaixinService {
             FileUtil.copyContent(new File(editMappingPath), new File(viewMappingPath), true);
             FileUtil.copyContent(new File(editMappingPath), new File(viewMappingPath), true);
 
 
             String viewPath = "/oss/4dkankan/" + String.format(UploadFilePath.VIEW_PATH, num);
             String viewPath = "/oss/4dkankan/" + String.format(UploadFilePath.VIEW_PATH, num);
+
+            //删除user目录
+            String userViewPath = "/oss/4dkankan/" + String.format(UploadFilePath.USER_VIEW_PATH, num);
+            FileUtil.del(userViewPath);
+
+            //打压缩包
             this.zip(viewPath, zipPath);
             this.zip(viewPath, zipPath);
         }
         }