cqp 1 tydzień temu
rodzic
commit
2b5a5300a9
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/Service/UserGuideService.php

+ 1 - 0
app/Service/UserGuideService.php

@@ -199,6 +199,7 @@ class UserGuideService extends Service
             $rowNum = $key + 1;
             $rowNum = $key + 1;
             if (empty($value['type']) || ! in_array($value['type'], UserGuideDetails::$type)) return [false, "第{$rowNum}行的图文类型不能为空或类型错误"];
             if (empty($value['type']) || ! in_array($value['type'], UserGuideDetails::$type)) return [false, "第{$rowNum}行的图文类型不能为空或类型错误"];
             if (empty($value['content'])) return [false, "第{$rowNum}行的内容不能为空"];
             if (empty($value['content'])) return [false, "第{$rowNum}行的内容不能为空"];
+            if (! isset($value['sort'])) return [false, "第{$rowNum}行的sort不存在"];
         }
         }
 
 
         if($is_add){
         if($is_add){