From 1a97b7547299db84b775519d7f9169d756133d72 Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 3 Mar 2022 17:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90curd?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E8=A6=86=E7=9B=96=E6=97=B6yes=E6=97=A0?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/command/Curd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/command/Curd.php b/app/common/command/Curd.php index 7d6f6e6..d3d4aa8 100644 --- a/app/common/command/Curd.php +++ b/app/common/command/Curd.php @@ -99,7 +99,6 @@ class Curd extends Command $fileList = $build->getFileList(); if (!$delete) { - $result = $build->create(); if ($force) { $output->info(">>>>>>>>>>>>>>>"); foreach ($fileList as $key => $val) { @@ -112,6 +111,7 @@ class Curd extends Command throw new Exception("取消文件CURD生成操作"); } } + $result = $build->create(); CliEcho::success('自动生成CURD成功'); } else { $output->info(">>>>>>>>>>>>>>>");