|
@@ -318,7 +318,7 @@ 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);
|
|
- fYunFileService.deleteFile(bucket, publicUserPath);
|
|
|
|
|
|
+ fYunFileService.deleteFolder(bucket, publicUserPath);
|
|
|
|
|
|
//复制编辑目录到发布目录
|
|
//复制编辑目录到发布目录
|
|
String editPath = String.format(UploadFilePath.USER_EDIT_PATH, param.getNum());
|
|
String editPath = String.format(UploadFilePath.USER_EDIT_PATH, param.getNum());
|
|
@@ -386,7 +386,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
fYunFileService.uploadFile(bucket, linkPanArr.toString().getBytes(), linkScenePath);
|
|
fYunFileService.uploadFile(bucket, linkPanArr.toString().getBytes(), linkScenePath);
|
|
|
|
|
|
//拷贝编辑目录到发布目录
|
|
//拷贝编辑目录到发布目录
|
|
- fYunFileService.deleteFile(bucket,imgViewPath + "panorama");
|
|
|
|
|
|
+ fYunFileService.deleteFolder(bucket,imgViewPath + "panorama");
|
|
fYunFileService.copyFileBetweenBucket(bucket, imgEditPath + "panorama", bucket, imgViewPath + "panorama");
|
|
fYunFileService.copyFileBetweenBucket(bucket, imgEditPath + "panorama", bucket, imgViewPath + "panorama");
|
|
|
|
|
|
}
|
|
}
|
|
@@ -2120,7 +2120,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
//删除oss文件
|
|
//删除oss文件
|
|
String imgEditPath = String.format(UploadFilePath.IMG_EDIT_PATH, num);
|
|
String imgEditPath = String.format(UploadFilePath.IMG_EDIT_PATH, num);
|
|
deleteSidList.stream().forEach(sid->{
|
|
deleteSidList.stream().forEach(sid->{
|
|
- fYunFileService.deleteFolder(bucket, imgEditPath + "panorama_edit/" + sid);
|
|
|
|
|
|
+ fYunFileService.deleteFolder(bucket, imgEditPath + "panorama/" + sid);
|
|
});
|
|
});
|
|
|
|
|
|
}
|
|
}
|