|
@@ -945,7 +945,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
//如果是压缩包上传,需要解压缩
|
|
|
if(file.getOriginalFilename().endsWith(".zip")){
|
|
|
//解压zip包
|
|
|
- FileUtils.unZip(zipTargetFilePath, targetImagesPath);
|
|
|
+ ZipUtil.unzip(zipTargetFilePath,targetImagesPath);
|
|
|
//删除压缩包
|
|
|
FileUtils.delFile(zipTargetFilePath);
|
|
|
}
|
|
@@ -978,9 +978,6 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5062);
|
|
|
}
|
|
|
|
|
|
- //列出caches/images中的文件列表
|
|
|
- String imgCachePath = String.format(UploadFilePath.IMG_CACHES_PATH, num);
|
|
|
-
|
|
|
//比对图片列表,不存在的要返回名称集合
|
|
|
String visionPath = path + "/results/vision.txt";
|
|
|
List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|