|
@@ -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) -> {
|