|
@@ -924,10 +924,11 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
.add(String.format("%02d", nowTime.getMonthValue())).add(File.separator)
|
|
|
.add(String.format("%02d", nowTime.getDayOfMonth()))
|
|
|
.add(File.separator).add(SystemConstant.getUuid()).add(SystemConstant.ZIP_PREFIX);
|
|
|
+
|
|
|
File zipFile = new File(stringJoiner.toString() + dirName.toString());
|
|
|
if (!zipFile.getParentFile().exists()) {
|
|
|
zipFile.getParentFile().mkdirs();
|
|
|
- zipFile.createNewFile();
|
|
|
+// zipFile.createNewFile();
|
|
|
}
|
|
|
|
|
|
boolean oss = dictionaryConfig.sysDomain().isOss();
|
|
@@ -949,6 +950,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
sourceFiles.add(htmlFile);
|
|
|
}
|
|
|
// FileUtil.doZip(zipFile, sourceFiles);
|
|
|
+
|
|
|
Zip4jUtil.zipEncryptFile(zipFile.getPath(), sourceFiles, SystemConstant.ZIP_ENCRYPT_PWD);
|
|
|
String ossDirName = dirName.toString().replaceAll("\\\\", "/");
|
|
|
JSONObject jsonObject = new JSONObject();
|