cqpCow 1 ano atrás
pai
commit
14032137f3
1 arquivos alterados com 1 adições e 1 exclusões
  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'],