فهرست منبع

修改拷贝逻辑

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);
                 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()){
                     FileUtils.copyDirectiory(oldPath, newPath);
                 }