lyhzzz 2 years ago
parent
commit
ff7e769a30

+ 2 - 3
src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

@@ -210,9 +210,8 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
                         String localPath = OBJToGLBUtil.OsgbToB3dm(objPathFile);
                         osgbFile = new File(localPath.replace("mnt/fusion/b3dm","/mnt/fusion/osgb"));
                         b3dmFile = new File(localPath);
-                        String jsonPath = null;
-                        jsonPath =  FileWriterUtil.checkB3dmTileset(b3dmFile);
-                        if(jsonPath == null){
+                        b3dmJsonPath =  FileWriterUtil.checkB3dmTileset(b3dmFile);
+                        if(b3dmJsonPath == null){
                             throw new BusinessException(-1,"缺少tileset.json文件");
                         }
                         redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"80");