cqpCow hai 1 ano
pai
achega
14032137f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Service/TableHeadService.php

+ 1 - 1
app/Service/TableHeadService.php

@@ -17,7 +17,7 @@ class TableHeadService extends Service
             if(empty($value['key'])) return [false, 'key不能为空'];
             if(empty($value['value'])) return [false, 'value不能为空'];
             if(empty($value['sort'])) return [false, 'sort不能为空'];
-            if(empty($value['is_show'])) return [false, 'is_show不能为空'];
+            if(! isset($value['is_show'])) return [false, 'is_show不能为空'];
 
             $insert[] = [
                 'key' => $value['key'],