瀏覽代碼

修改拷贝逻辑

tianboguang 2 年之前
父節點
當前提交
39e5a5e517
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/ucenter/service/impl/ScenePlusServiceImpl.java

+ 2 - 2
src/main/java/com/fdkankan/ucenter/service/impl/ScenePlusServiceImpl.java

@@ -169,8 +169,8 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
                 String newViewPath = String.format(UploadFilePath.VIEW_PATH, newNum);
                 String newViewPath = String.format(UploadFilePath.VIEW_PATH, newNum);
                 fYunFileServiceInterface.copyFileInBucket(oldViewPath, newViewPath);
                 fYunFileServiceInterface.copyFileInBucket(oldViewPath, newViewPath);
                 // 拷贝本地资源
                 // 拷贝本地资源
-                String oldPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", num);
-                String newPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", newNum);
+                String oldPath = String.format("/mnt/4Dkankan/scene/%s/caches/images", num);
+                String newPath = String.format("/mnt/4Dkankan/scene/%s/caches/images", newNum);
                 if(new File(oldPath).exists()){
                 if(new File(oldPath).exists()){
                     FileUtils.copyDirectiory(oldPath, newPath);
                     FileUtils.copyDirectiory(oldPath, newPath);
                 }
                 }