增加默认数据

This commit is contained in:
liaofei 2023-04-14 16:29:16 +08:00
parent 4bb2ca6aae
commit dfae6709f7

View File

@ -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);