cqpCow 1 жил өмнө
parent
commit
14032137f3

+ 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'],