|
@@ -320,7 +320,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
|
|
|
//删除发布数据中的user目录
|
|
//删除发布数据中的user目录
|
|
String publicUserPath = String.format(UploadFilePath.USER_VIEW_PATH, num);
|
|
String publicUserPath = String.format(UploadFilePath.USER_VIEW_PATH, num);
|
|
- if(fYunFileService.fileExist(bucket, publicUserPath)){
|
|
|
|
|
|
+ List<String> userViewFileList = fYunFileService.listRemoteFiles(bucket, publicUserPath);
|
|
|
|
+ if(CollUtil.isNotEmpty(userViewFileList)){
|
|
fYunFileService.deleteFolder(bucket, publicUserPath);
|
|
fYunFileService.deleteFolder(bucket, publicUserPath);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1324,11 +1325,6 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
map.put("fileName", downloadName);
|
|
map.put("fileName", downloadName);
|
|
return ResultData.ok(map);
|
|
return ResultData.ok(map);
|
|
}else{
|
|
}else{
|
|
- //判断全景图目录是否存在
|
|
|
|
- if(!fYunFileService.fileExist(bucket, ossResultPath)){
|
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5063);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//清除旧的下载记录
|
|
//清除旧的下载记录
|
|
sceneAsynOperLogService.remove(
|
|
sceneAsynOperLogService.remove(
|
|
new LambdaQueryWrapper<SceneAsynOperLog>()
|
|
new LambdaQueryWrapper<SceneAsynOperLog>()
|