|
@@ -372,6 +372,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
String userEditPath = String.format(UploadFilePath.USER_EDIT_PATH, num);
|
|
|
String imgViewPath = String.format(UploadFilePath.IMG_VIEW_PATH, num);
|
|
|
|
|
|
+ //清除发布目录中的场景关联图片
|
|
|
+ fYunFileService.deleteFolder(bucket,imgViewPath + "panorama");
|
|
|
+
|
|
|
//生成links.json并上传到发布目录
|
|
|
String linkPanKey = String.format(RedisKey.SCENE_LINKPAN_DATA, num);
|
|
|
Map<String, String> linkPanMap = redisUtil.hmget(linkPanKey);
|
|
@@ -386,7 +389,6 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
fYunFileService.uploadFile(bucket, linkPanArr.toString().getBytes(), linkScenePath);
|
|
|
|
|
|
//拷贝编辑目录到发布目录
|
|
|
- fYunFileService.deleteFolder(bucket,imgViewPath + "panorama");
|
|
|
fYunFileService.copyFileBetweenBucket(bucket, imgEditPath + "panorama", bucket, imgViewPath + "panorama");
|
|
|
|
|
|
}
|