浏览代码

bug:印刷任务管理批量下载pdf没有加zip密码

caozixuan 2 年之前
父节点
当前提交
b4d5c06394

+ 2 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/templete/service/impl/TaskLogicServiceImpl.java

@@ -948,7 +948,8 @@ public class TaskLogicServiceImpl implements TaskLogicService {
                         }
                         sourceFiles.add(htmlFile);
                     }
-                    FileUtil.doZip(zipFile, sourceFiles);
+//                    FileUtil.doZip(zipFile, sourceFiles);
+                    Zip4jUtil.zipEncryptFile(zipFile.getPath(), sourceFiles, SystemConstant.ZIP_ENCRYPT_PWD);
                     String ossDirName = dirName.toString().replaceAll("\\\\", "/");
                     JSONObject jsonObject = new JSONObject();
                     if (oss) {//上传至oss