ソースを参照

修改拷贝场景逻辑
http://192.168.0.21/index.php?m=bug&f=view&id=29288

tianboguang 3 年 前
コミット
a50b2acbaa

+ 3 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

@@ -1370,7 +1370,9 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         // 拷贝本地资源
         String oldPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", num);
         String newPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", newNum);
-        FileUtils.copyDirectiory(oldPath, newPath);
+        if(new File(oldPath).exists()){
+            FileUtils.copyDirectiory(oldPath, newPath);
+        }
 
         String scenePath = ConstantFilePath.SCENE_V4_PATH + num;
         File file = new File(scenePath);