diff --git a/crmeb/crmeb/services/crud/Service.php b/crmeb/crmeb/services/crud/Service.php index 3fa20828e..68f7602d6 100644 --- a/crmeb/crmeb/services/crud/Service.php +++ b/crmeb/crmeb/services/crud/Service.php @@ -123,6 +123,12 @@ class Service extends Make */ protected function getOptionContent(array $option = []) { + if (!$option) { + $option = [ + ['value' => 1, 'label' => '开启'], + ['value' => 0, 'label' => '关闭'] + ]; + } $php = ''; if ($option) { $res = var_export($option, true);