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