소스 검색

Merge remote-tracking branch 'origin/master'

lyhzzz 3 년 전
부모
커밋
dd36685ca7
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneEditServiceImpl.java

+ 6 - 4
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneEditServiceImpl.java

@@ -166,10 +166,12 @@ public class SceneEditServiceImpl implements ISceneEditService {
             }
 
             //批量删除资源文件
-            sceneUploadService.delete(
-                DeleteFileParamVO.builder()
-                    .num(param.getNum()).bizType("tour").fileNames(fileNames)
-                    .build());
+            if(CollUtil.isNotEmpty(fileNames)){
+                sceneUploadService.delete(
+                    DeleteFileParamVO.builder()
+                        .num(param.getNum()).bizType("tour").fileNames(fileNames)
+                        .build());
+            }
         }
         //删除tour.json文件
         uploadToOssUtil.delete(tourJsonPath);