浏览代码

上传3dtiles模型

dsx 2 年之前
父节点
当前提交
1a3b33f68c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

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

@@ -810,7 +810,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
             }
             //检测obj文件是否存在
             String objPath = itemObj.getString("objPath");
-            if(StrUtil.isEmpty(objPath) || FileUtil.exist(path + objPath)){
+            if(StrUtil.isEmpty(objPath) || !FileUtil.exist(path + objPath)){
                 throw new BusinessException(ErrorCode.FAILURE_CODE_5070);
             }
         });