Browse Source

删除源文件

lyhzzz 2 năm trước cách đây
mục cha
commit
7fcadc9786

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

@@ -208,7 +208,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
 
                         redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"60");
                         String localPath = OBJToGLBUtil.OsgbToB3dm(objPathFile);
-                        osgbFile = new File(localPath.replace("b3dm","osgb"));
+                        osgbFile = new File(localPath.replace("mnt/fusion/b3dm","/mnt/fusion/osgb"));
                         b3dmFile = new File(localPath);
                         String jsonPath = null;
                         jsonPath =  FileWriterUtil.checkB3dmTileset(b3dmFile);
@@ -244,10 +244,10 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
                        FileUtil.del(mntFile.getParentFile());
                     }
                     if(b3dmFile != null){
-                        FileUtil.del(b3dmFile);
+                        FileUtil.del(b3dmFile.getParentFile());
                     }
                     if(osgbFile != null){
-                        FileUtil.del(osgbFile);
+                        FileUtil.del(osgbFile.getParentFile());
                     }
                 }
             }, executor).whenComplete((reslut, e) -> {