Przeglądaj źródła

上传3dtiles模型

dsx 2 lat temu
rodzic
commit
1a3b33f68c

+ 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);
             }
         });