From 007d832f9448b70cb2d0edb7ba04935f133b1cce Mon Sep 17 00:00:00 2001 From: reatang Date: Wed, 19 Oct 2022 23:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86smallint=E5=AD=97=E6=AE=B5=E4=B9=9F?= =?UTF-8?q?=E7=BA=B3=E5=85=A5=E5=8D=95=E9=80=89=E6=A1=86=E7=9A=84=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/command/Crud.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php index 390cb953d..6bc128637 100755 --- a/application/admin/command/Crud.php +++ b/application/admin/command/Crud.php @@ -1587,7 +1587,7 @@ EOD; $inputType = 'datetime'; } // 指定后缀结尾且类型为enum,说明是个单选框 - if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum') { + if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum' || $v['DATA_TYPE'] == 'smallint') { $inputType = "radio"; } // 指定后缀结尾且类型为set,说明是个复选框 -- Gitee