|
@@ -644,10 +644,12 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
|
|
|
|
|
//njs空间模型
|
|
//njs空间模型
|
|
|
String njsBoxModelKey = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModels.json";
|
|
String njsBoxModelKey = String.format(UploadFilePath.USER_EDIT_PATH, num) + "njsBoxModels.json";
|
|
|
- String njsBoxModelStr = fYunFileService.getFileContent(njsBoxModelKey);
|
|
|
|
|
- JSONArray njsBoxModelArr = JSON.parseArray(njsBoxModelStr);
|
|
|
|
|
- if(!njsBoxModelArr.isEmpty()){
|
|
|
|
|
- sceneInfoVO.setHasNjsBoxModel(CommonStatus.YES.code().intValue());
|
|
|
|
|
|
|
+ if(fYunFileService.fileExist(njsBoxModelKey)){
|
|
|
|
|
+ String njsBoxModelStr = fYunFileService.getFileContent(njsBoxModelKey);
|
|
|
|
|
+ JSONArray njsBoxModelArr = JSON.parseArray(njsBoxModelStr);
|
|
|
|
|
+ if(CollUtil.isNotEmpty(njsBoxModelArr)){
|
|
|
|
|
+ sceneInfoVO.setHasNjsBoxModel(CommonStatus.YES.code().intValue());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return sceneInfoVO;
|
|
return sceneInfoVO;
|