|
@@ -212,22 +212,6 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
//上传全景图俯视图
|
|
//上传全景图俯视图
|
|
this.uploadFloorCad(path, sceneCode, uploadFiles);
|
|
this.uploadFloorCad(path, sceneCode, uploadFiles);
|
|
|
|
|
|
- //将全景图缓存到缓存目录
|
|
|
|
- List<String> imagesList = cn.hutool.core.io.FileUtil.listFileNames(path + "/caches/images");
|
|
|
|
- String cachedImagesPath = String.format(ConstantFilePath.SCENE_CACHE_IMAGES, sceneCode);
|
|
|
|
- //先清除旧的全景图
|
|
|
|
- cn.hutool.core.io.FileUtil.del(cachedImagesPath);
|
|
|
|
- String visionPath = path + "/results/vision.txt";
|
|
|
|
- List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|
|
|
|
- imagesList.stream().forEach(fileName -> {
|
|
|
|
- if (panoramaImageList.contains(fileName)) {
|
|
|
|
- String srcPath = path + "/caches/images/" + fileName;
|
|
|
|
- String targetPath = cachedImagesPath + fileName;
|
|
|
|
- log.info("源文件:{}, 目标文件:{}", srcPath, targetPath);
|
|
|
|
- cn.hutool.core.io.FileUtil.copy(srcPath, targetPath, true);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
//上传文件
|
|
//上传文件
|
|
log.info("开始上传场景计算结果数据,num:{}", sceneCode);
|
|
log.info("开始上传场景计算结果数据,num:{}", sceneCode);
|
|
fYunFileService.uploadMulFiles(uploadFiles);
|
|
fYunFileService.uploadMulFiles(uploadFiles);
|