|
@@ -319,7 +319,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
|
|
|
//删除发布数据中的user目录
|
|
|
String publicUserPath = String.format(UploadFilePath.USER_VIEW_PATH, num);
|
|
|
- fYunFileService.deleteFolder(bucket, publicUserPath);
|
|
|
+ if(fYunFileService.fileExist(bucket, publicUserPath)){
|
|
|
+ fYunFileService.deleteFolder(bucket, publicUserPath);
|
|
|
+ }
|
|
|
|
|
|
//复制编辑目录到发布目录
|
|
|
String editPath = String.format(UploadFilePath.USER_EDIT_PATH, param.getNum());
|
|
@@ -381,7 +383,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
String imgViewPath = String.format(UploadFilePath.IMG_VIEW_PATH, num);
|
|
|
|
|
|
//清除发布目录中的场景关联图片
|
|
|
- fYunFileService.deleteFolder(bucket,imgViewPath + "panorama");
|
|
|
+ if(fYunFileService.fileExist(bucket,imgViewPath + "panorama")){
|
|
|
+ fYunFileService.deleteFolder(bucket,imgViewPath + "panorama");
|
|
|
+ }
|
|
|
|
|
|
//生成links.json并上传到发布目录
|
|
|
String linkPanKey = String.format(RedisKey.SCENE_LINKPAN_DATA, num);
|