|
@@ -358,7 +358,7 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public String getVideosJson(String path, Integer videoVersion, String projectNum, int cameraType) throws Exception {
|
|
|
|
|
|
+ public JSONObject getVideosJson(String path, Integer videoVersion, String projectNum, int cameraType) throws Exception {
|
|
//读取videos_hdr_param.json, 保存点位视频的value
|
|
//读取videos_hdr_param.json, 保存点位视频的value
|
|
Map<String, Object> videoMap = new HashMap<>();
|
|
Map<String, Object> videoMap = new HashMap<>();
|
|
String videosHdr = FileUtils.readFile(path + File.separator + "results/videos/videos_hdr_param.json");
|
|
String videosHdr = FileUtils.readFile(path + File.separator + "results/videos/videos_hdr_param.json");
|
|
@@ -454,11 +454,11 @@ public class BuildScenePreServiceImpl implements IBuildScenePreService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return videosJson.toJSONString();
|
|
|
|
|
|
+ return videosJson;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public String writeSceneJson(String num, String videosJson, SceneEditInfo sceneEditInfo,
|
|
|
|
|
|
+ public String writeSceneJson(String num, JSONObject videosJson, SceneEditInfo sceneEditInfo,
|
|
SceneEditControls sceneEditControls, ScenePro scenePro, SceneProExt sceneProExt) throws Exception{
|
|
SceneEditControls sceneEditControls, ScenePro scenePro, SceneProExt sceneProExt) throws Exception{
|
|
String sceneJsonPath = String.format(ConstantFilePath.SCENE_PATH_FORMAT, num);
|
|
String sceneJsonPath = String.format(ConstantFilePath.SCENE_PATH_FORMAT, num);
|
|
String strsceneInfos = FileUtils.readFile(sceneJsonPath);
|
|
String strsceneInfos = FileUtils.readFile(sceneJsonPath);
|