From dfae6709f7132d6c65b159a26977849e3a50f48b Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Fri, 14 Apr 2023 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/crud/Service.php | 6 ++++++ 1 file changed, 6 insertions(+) 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);