|
@@ -305,10 +305,6 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
String sceneJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH+"scene.json", num);
|
|
|
fYunFileService.uploadFile(bucket, JSON.toJSONBytes(sceneJson), sceneJsonPath);
|
|
|
|
|
|
- //sceneJson放入缓存
|
|
|
- String key = String.format(RedisKey.SCENE_JSON, num);
|
|
|
- redisUtil.set(key, JSON.toJSONString(sceneJson));
|
|
|
-
|
|
|
//删除发布数据中的user目录
|
|
|
String publicUserPath = String.format(UploadFilePath.USER_VIEW_PATH, num);
|
|
|
List<String> userViewFileList = fYunFileService.listRemoteFiles(bucket, publicUserPath);
|
|
@@ -321,6 +317,10 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
String viewPath = String.format(UploadFilePath.USER_VIEW_PATH, param.getNum());
|
|
|
fYunFileService.copyFileBetweenBucket(bucket, editPath, bucket, viewPath);
|
|
|
|
|
|
+ //sceneJson放入缓存
|
|
|
+ String key = String.format(RedisKey.SCENE_JSON, num);
|
|
|
+ redisUtil.set(key, JSON.toJSONString(sceneJson));
|
|
|
+
|
|
|
//入库
|
|
|
if(sceneEditInfo.getId() == null){
|
|
|
this.save(sceneEditInfo);
|