|
@@ -62,11 +62,13 @@ public class TowerServiceImpl implements ITowerService {
|
|
//下载scene.json
|
|
//下载scene.json
|
|
String sceneJsonPath = dataPath.concat("scene.json");
|
|
String sceneJsonPath = dataPath.concat("scene.json");
|
|
String sceneJson = redisUtil.get(String.format(RedisKey.SCENE_JSON, num));
|
|
String sceneJson = redisUtil.get(String.format(RedisKey.SCENE_JSON, num));
|
|
- if(StrUtil.isNotEmpty(sceneJson)){
|
|
|
|
- FileUtil.writeUtf8String(sceneJson, sceneJsonPath);
|
|
|
|
- }else{
|
|
|
|
- fYunFileService.downloadFile(ossDataPath.concat("scene.json"), sceneJsonPath);
|
|
|
|
|
|
+ if(StrUtil.isEmpty(sceneJson)){
|
|
|
|
+ sceneJson = fYunFileService.getFileContent(ossDataPath.concat("scene.json"));
|
|
}
|
|
}
|
|
|
|
+ JSONObject sceneJsonObj = JSON.parseObject(sceneJson);
|
|
|
|
+ sceneJsonObj.put("sceneKind", "pano");
|
|
|
|
+ FileUtil.writeUtf8String(sceneJsonObj.toJSONString(), sceneJsonPath);
|
|
|
|
+
|
|
//下载mesh
|
|
//下载mesh
|
|
fYunFileService.downloadFileByCommand(dataPath, ossDataPath.concat("mesh"));
|
|
fYunFileService.downloadFileByCommand(dataPath, ossDataPath.concat("mesh"));
|
|
|
|
|