dengsixing 6 月之前
父节点
当前提交
9719c94912
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/fdkankan/contro/service/impl/HaixinServiceImpl.java

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