This commit is contained in:
2021-03-25 19:59:40 +08:00
parent ba1deeb057
commit 0cbb2b04e4
+1 -1
View File
@@ -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";