Browse Source

修改拷贝逻辑

tianboguang 2 years ago
parent
commit
39e5a5e517

+ 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);
                 }