lyhzzz 1 éve
szülő
commit
c606faa5a9

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

@@ -158,13 +158,13 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
                 toGlB(file,localGlbPath);
             }
             if(file.getParent().contains("lod_") && file.getParent().contains("lod_0") ){
-                String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getParentFile().getPath()+"/b3dm");
+                String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getPath()+"/b3dm");
                 localGlbPath.add(glbPath);
                 continue;
             }
 
             if(file.getName().contains(".obj")){
-               String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getParentFile().getPath()+"/b3dm");
+               String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getPath()+"/b3dm");
                localGlbPath.add(glbPath);
             }
         }

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/ThreadService.java

@@ -82,7 +82,7 @@ public class ThreadService {
             if(name.contains("obj") || name.contains("OBJ")){
                 model.setModelDateType("b3dm");
                 model.setModelType("b3dm");
-                String localPath = file1.getParentFile().getParentFile().getPath()+"/b3dm";
+                String localPath = file1.getParentFile().getPath()+"/b3dm";
 
                 OBJToGLBUtil.objToB3dm2(file1.getPath(),localPath);
                 redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"65");