Prechádzať zdrojové kódy

Merge branch 'hotfix/hotfix-29236' into test

tianboguang 3 rokov pred
rodič
commit
2d9d6c247e

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