‘linchangsheng’ 6 月之前
父節點
當前提交
d83f2961c3

+ 3 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/comlist/ComListAllLogic.java

@@ -293,6 +293,9 @@ public class ComListAllLogic {
 
             String[] s = fileZip.getName().split("_");
 
+            if (s.length < 3)
+                throw new RemoteServiceException("导入格式错误");
+
 
             List<AdminWebsit> adminWebsits = adminWebsitService.lambdaQuery().in(AdminWebsit::getName, s[2]).list();