From b3684b7521ed8c9fee941dfc575c626085216dde Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 22 Oct 2024 15:22:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96curd=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=AF=B9=E5=BA=94=E5=88=B0=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=EF=BC=8C=E6=96=B9=E4=BE=BFIDE=E5=8F=AF?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=AE=9A=E4=BD=8D=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/common/command/CurdBase.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extend/base/common/command/CurdBase.php b/extend/base/common/command/CurdBase.php index 643dce0..5dfce62 100644 --- a/extend/base/common/command/CurdBase.php +++ b/extend/base/common/command/CurdBase.php @@ -131,7 +131,13 @@ class CurdBase extends Command } $output->info('>>>>>>>>>>>>>>>'); foreach ($result as $vo) { - $output->info($vo); + $output_endfix = ''; + if ($input->hasOption('runtime')) { + $base_path = str_replace($runtime_path, '', $vo); + $root_path = App::getRootPath(); + $output_endfix = ' >> ' . $root_path . $base_path; + } + $output->info($vo . $output_endfix); } } catch (\Exception $e) { $output->error($e->getMessage());