소스 검색

复制优化

dengsixing 4 달 전
부모
커밋
4cd3307329

+ 5 - 6
src/main/java/com/fdkankan/scene/service/impl/SceneCopyServiceImpl.java

@@ -457,12 +457,11 @@ public class SceneCopyServiceImpl implements ISceneCopyService {
         String newResultPath = String.format(SceneResourcePath.SCENE_RESULT_DATA_PATH, newNum);
         fYunFileServiceInterface.copyFileInBucket(oldResultPath, newResultPath);
 
-        // 拷贝本地资源
-        String oldPath = SceneResourcePath.nasBasePath + oldNum;
-        String newPath = SceneResourcePath.nasBasePath + newNum;
-        if(new File(oldPath).exists()){
-            FileUtil.copyContent(new File(oldPath), new File(newPath),true);
-        }
+//        String oldPath = SceneResourcePath.nasBasePath + oldNum;
+//        String newPath = SceneResourcePath.nasBasePath + newNum;
+//        if(new File(oldPath).exists()){
+//            FileUtil.copyContent(new File(oldPath), new File(newPath),true);
+//        }
         String oldPath_v4 = SceneResourcePath.nasBasePath_v4 + oldNum;
         String newPath_v4 = SceneResourcePath.nasBasePath_v4 + newNum;
         if(new File(oldPath_v4).exists()){

+ 0 - 2
src/main/java/com/fdkankan/scene/service/impl/SceneEditInfoServiceImpl.java

@@ -1374,11 +1374,9 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
         String path = scenePlusExt.getDataSource();
 
         String cachePath = String.format(ConstantFilePath.SCENE_CACHE, num);
-        String imgCachePath = String.format(UploadFilePath.IMG_CACHES_PATH, num);
         String localImagesPath =  String.format(ConstantFilePath.SCENE_CACHE_IMAGES, num);
 
         String cacheFormat = "downloads/scene/%s/caches/";
-        String cacheImageFormat = "downloads/scene/%s/caches/images/";
 
         //判断全景图缓存是否存在,如果不存在,从计算目录中拷贝到缓存目录
 //        this.cachePanorama(scenePlusExt.getDataSource(), num);