Quellcode durchsuchen

3dtiles模型上传 检测floors.json是否存在

dsx vor 2 Jahren
Ursprung
Commit
0d6970bc33

+ 1 - 1
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -793,7 +793,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         //检测文件
         String floorsJsonPath = meshPath + File.separator + "floors.json";
         if(FileUtil.exist(floorsJsonPath)){
-//            throw new BusinessException(ErrorCode.FAILURE_CODE_5068);
+            throw new BusinessException(ErrorCode.FAILURE_CODE_5068);
         }
         String floorsJsonStr = FileUtil.readUtf8String(floorsJsonPath);
         JSONObject floorsJsonObj = JSON.parseObject(floorsJsonStr);