Ver código fonte

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

tianboguang 3 anos atrás
pai
commit
dc2ed30d9e

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

@@ -1373,8 +1373,11 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         FileUtils.copyDirectiory(oldPath, newPath);
 
         String scenePath = ConstantFilePath.SCENE_V4_PATH + num;
-        String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
-        FileUtils.copyDirectiory(scenePath, newScenePath);
+        File file = new File(scenePath);
+        if(file.exists()){
+            String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
+            FileUtils.copyDirectiory(scenePath, newScenePath);
+        }
 
         // 拷贝数据
         Long proId = scenePro.getId();