소스 검색

上传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);
             }
         });