From 88117e3316f265edd6b2950f90dbc5d05bbc18d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 20 Apr 2023 14:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GiiModel.php b/GiiModel.php index bea4c1a..10ba055 100644 --- a/GiiModel.php +++ b/GiiModel.php @@ -294,7 +294,7 @@ class ' . $managerName . ' extends Model [\'' . $_val[0][3] . '\', ' . ($_val[0][1] == 'enum' ? '\'enum\' => [' . $key .']' : $key) . ']'; } else { $_tmp = ' - [[\'' . implode('\', \'', array_column($_val, 3)) . '\'], ' . $key . ']'; + [[\'' . implode('\', \'', array_column($_val, 3)) . '\'], ' . ($_val[0][1] == 'enum' ? '\'enum\' => [' . $key .']' : $key) . ']'; } $string[] = $_tmp; }