|
@@ -578,7 +578,13 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
result.put("version", "2.1");
|
|
|
|
|
|
String floorplanCadPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "floorplan_cad.json";
|
|
|
- String floorcadStr = ossUtil.getFileContent(floorplanCadPath);
|
|
|
+ String floorcadStr = null;
|
|
|
+ try {
|
|
|
+ floorcadStr = ossUtil.getFileContent(floorplanCadPath);
|
|
|
+ }catch (Exception e){
|
|
|
+ log.warn("场景没有生成floorplan_cad.json, num:{}", num);
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
JSONObject floorcadObj = JSON.parseObject(floorcadStr);
|
|
|
JSONArray floors = floorcadObj.getJSONArray("floors");
|