|
@@ -225,6 +225,7 @@ public class BaseSafetyToolServiceImpl implements IBaseSafetyToolService {
|
|
|
return AjaxResult.error("临时目录创建失败");
|
|
return AjaxResult.error("临时目录创建失败");
|
|
|
}
|
|
}
|
|
|
log.info(" * 开始整理二维码图片文件 * ");
|
|
log.info(" * 开始整理二维码图片文件 * ");
|
|
|
|
|
+ long time1 = System.currentTimeMillis();
|
|
|
for (BaseSafetyTool tool : tools){
|
|
for (BaseSafetyTool tool : tools){
|
|
|
String jpgPath = tmpPath + tool.getToolCode() + ".jpg";
|
|
String jpgPath = tmpPath + tool.getToolCode() + ".jpg";
|
|
|
HttpUtils.download(tool.getQcodeUrl(), jpgPath);
|
|
HttpUtils.download(tool.getQcodeUrl(), jpgPath);
|
|
@@ -235,6 +236,8 @@ public class BaseSafetyToolServiceImpl implements IBaseSafetyToolService {
|
|
|
} catch (ZipException e) {
|
|
} catch (ZipException e) {
|
|
|
return AjaxResult.error("文件压缩失败");
|
|
return AjaxResult.error("文件压缩失败");
|
|
|
}
|
|
}
|
|
|
|
|
+ long time2 = System.currentTimeMillis();
|
|
|
|
|
+ log.debug(" ****** {}", (time2 - time1));
|
|
|
String zipFilePath = localFilePath + "/" + zipFile;
|
|
String zipFilePath = localFilePath + "/" + zipFile;
|
|
|
log.info("压缩文件: {} - {}", zipFile, zipFilePath);
|
|
log.info("压缩文件: {} - {}", zipFile, zipFilePath);
|
|
|
return sysFileService.uploadFile(zipFilePath);
|
|
return sysFileService.uploadFile(zipFilePath);
|