|
@@ -1134,13 +1134,18 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
}
|
|
}
|
|
|
|
|
|
downloadName = num + "_images.zip";
|
|
downloadName = num + "_images.zip";
|
|
|
|
+ long start = Calendar.getInstance().getTimeInMillis();
|
|
//打包
|
|
//打包
|
|
String zipPath = cachePath + downloadName;
|
|
String zipPath = cachePath + downloadName;
|
|
ZipUtil.zip(localImagesPath, zipPath);
|
|
ZipUtil.zip(localImagesPath, zipPath);
|
|
|
|
+ long end1 = Calendar.getInstance().getTimeInMillis();
|
|
|
|
+ log.info("打包耗时:" + (end1 - start));
|
|
//上传压缩包
|
|
//上传压缩包
|
|
// uploadToOssUtil.upload(zipPath, String.format(cacheFormat, num) + downloadName);
|
|
// uploadToOssUtil.upload(zipPath, String.format(cacheFormat, num) + downloadName);
|
|
uploadToOssUtil.uploadBySh(zipPath, String.format(cacheFormat, num) + downloadName);
|
|
uploadToOssUtil.uploadBySh(zipPath, String.format(cacheFormat, num) + downloadName);
|
|
url = ossUrlPrefix + String.format(cacheFormat, num) + downloadName;
|
|
url = ossUrlPrefix + String.format(cacheFormat, num) + downloadName;
|
|
|
|
+ long end2 = Calendar.getInstance().getTimeInMillis();
|
|
|
|
+ log.info("上传耗时:" + (end2 - end1));
|
|
//删除本地压缩包
|
|
//删除本地压缩包
|
|
FileUtils.deleteFile(zipPath);
|
|
FileUtils.deleteFile(zipPath);
|
|
// //删除本地目录
|
|
// //删除本地目录
|