From 0cbb2b04e410533bbc72611534fe8109123f0ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Mar 2021 19:59:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gii/GiiController.php b/Gii/GiiController.php index 962e8c9a..b86bce7a 100644 --- a/Gii/GiiController.php +++ b/Gii/GiiController.php @@ -102,7 +102,7 @@ use {$model_namespace}\\{$managerName}; $default = ['loadParam', 'actionAdd', 'actionUpdate', 'actionDetail', 'actionDelete', 'actionBatchDelete', 'actionList']; foreach ($default as $key => $val) { - if (str_contains($html, 'public function ' . $val . '(')) { + if (str_contains($html, ' function ' . $val . '(')) { continue; } $html .= $this->{'controllerMethod' . str_replace('action', '', $val)}($this->fields, $managerName, $managerName) . "\n";