|
@@ -224,6 +224,8 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
log.error("3dtiles目录异常,3dtiles地址:{}", new File(path + File.separator + "results" + File.separator + ModelKind.THREE_D_TILE.code()));
|
|
log.error("3dtiles目录异常,3dtiles地址:{}", new File(path + File.separator + "results" + File.separator + ModelKind.THREE_D_TILE.code()));
|
|
throw new Exception("3dtiles目录异常");
|
|
throw new Exception("3dtiles目录异常");
|
|
}
|
|
}
|
|
|
|
+ //先删除
|
|
|
|
+ fYunFileService.deleteFolder(oss3dtilesPath);
|
|
//上传3dtiles文件
|
|
//上传3dtiles文件
|
|
fYunFileService.uploadFileByCommand(threedtilesPath, oss3dtilesPath);
|
|
fYunFileService.uploadFileByCommand(threedtilesPath, oss3dtilesPath);
|
|
}
|
|
}
|
|
@@ -247,6 +249,8 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
log.info("开始拷贝obj文件");
|
|
log.info("开始拷贝obj文件");
|
|
FileUtils.copyFolderAllFiles(laserObjFilePath + "/results/mesh", laserObjFilePath + "/laserData/mesh/", true);
|
|
FileUtils.copyFolderAllFiles(laserObjFilePath + "/results/mesh", laserObjFilePath + "/laserData/mesh/", true);
|
|
|
|
|
|
|
|
+ //先删除
|
|
|
|
+ fYunFileService.deleteFolder(String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "mesh");
|
|
//上传mesh文件
|
|
//上传mesh文件
|
|
fYunFileService.uploadFileByCommand(laserObjFilePath + "/results/mesh", String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "mesh");
|
|
fYunFileService.uploadFileByCommand(laserObjFilePath + "/results/mesh", String.format(UploadFilePath.DATA_VIEW_PATH, projectNum) + "mesh");
|
|
|
|
|