|
@@ -530,14 +530,14 @@ public class BuildV3SceneServiceImpl implements IBuildSceneService {
|
|
|
videosJson.put("data", jsonArray);
|
|
|
if(Objects.nonNull(videoVersion) && videoVersion >= 4){
|
|
|
videosJson.put("version", 3);
|
|
|
- videosJson.put("upPath", fYunFileConfig.getHost() + String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "Up.xml");
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + String.format(ConstantFilePath.DATA_PATH_FORMAT, projectNum) + "Up.xml");
|
|
|
if(cameraType == 13){
|
|
|
//转台相机
|
|
|
videosJson.put("upPath", videosJson.getString("upPath").replace(".xml", ".txt"));
|
|
|
}
|
|
|
}else {
|
|
|
videosJson.put("version", 1);
|
|
|
- videosJson.put("upPath", fYunFileConfig.getHost() + String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "Up2.xml");
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + String.format(ConstantFilePath.DATA_PATH_FORMAT, projectNum) + "Up2.xml");
|
|
|
if(cameraType == 13){
|
|
|
//转台相机
|
|
|
videosJson.put("upPath", videosJson.getString("upPath").replace(".xml", ".txt"));
|
|
@@ -546,7 +546,7 @@ public class BuildV3SceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
if(cameraType == 5 || cameraType == 6){
|
|
|
videosJson.put("version", 1);
|
|
|
- videosJson.put("upPath", fYunFileConfig.getHost() + String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "stitch_params.txt");
|
|
|
+ videosJson.put("upPath", fYunFileConfig.getHost() + String.format(ConstantFilePath.DATA_PATH_FORMAT, projectNum) + "stitch_params.txt");
|
|
|
}
|
|
|
|
|
|
return videosJson;
|
|
@@ -628,7 +628,7 @@ public class BuildV3SceneServiceImpl implements IBuildSceneService {
|
|
|
return;
|
|
|
}
|
|
|
JSONObject json = CreateHouseJsonUtil.createHouseTypeJsonByCad(floorPlanCardFilePath);
|
|
|
- String hourseTypeJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "houseType.json";
|
|
|
+ String hourseTypeJsonPath = String.format(ConstantFilePath.DATA_PATH_FORMAT, num) + "houseType.json";
|
|
|
fYunFileService.uploadFile(json.toJSONString().getBytes(), hourseTypeJsonPath);
|
|
|
hourseTypeJsonPath = String.format(UploadFilePath.DATA_EDIT_PATH, num) + "houseType.json";
|
|
|
fYunFileService.uploadFile(json.toJSONString().getBytes(), hourseTypeJsonPath);
|