From cfe5b58d36648d98672e9aa8a99a9bf822c50ed5 Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 25 Mar 2025 09:41:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96curd=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=96=87=E4=BB=B6=E7=94=9F=E6=88=90=E6=97=B6=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=86=85=E5=AE=B9=E6=95=88=E6=9E=9C=EF=BC=8C=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E7=BC=96=E8=BE=91=E5=99=A8=E5=AE=9A=E4=BD=8D=E6=96=87?= =?UTF-8?q?=E4=BB=B6;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/common/command/CurdBase.php | 5 ++--- think | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extend/base/common/command/CurdBase.php b/extend/base/common/command/CurdBase.php index cb795a3..33eed2d 100644 --- a/extend/base/common/command/CurdBase.php +++ b/extend/base/common/command/CurdBase.php @@ -55,8 +55,7 @@ class CurdBase extends Command ->setForce($force); if ($input->hasOption('runtime')) { - $runtime_path = App::getRuntimePath() . 'source/build/' . date('YmdHis') . '/'; - dump($runtime_path); + $runtime_path = App::getRuntimePath() . 'source' . DS . 'build' . DS . date('YmdHis') . DS; PathTools::intiDir($runtime_path . 'a.temp'); $build->setRootDir($runtime_path); @@ -135,7 +134,7 @@ class CurdBase extends Command if ($input->hasOption('runtime')) { $base_path = str_replace($runtime_path, '', $vo); $root_path = App::getRootPath(); - $output_endfix = ' >> ' . $root_path . $base_path; + $output_endfix = PHP_EOL . 'ORIGIN:>>' . str_repeat(' ', 26) . ' ' . $root_path . $base_path . ' '; } $output->info($vo . $output_endfix . ' '); } diff --git a/think b/think index 33f2cbb..08ff960 100644 --- a/think +++ b/think @@ -6,6 +6,9 @@ namespace think; // 加载基础文件 require __DIR__ . '/vendor/autoload.php'; +// 声明全局变量 +define('DS', DIRECTORY_SEPARATOR); +define('ROOT_PATH', __DIR__ . DS); define('REUQEST_UID', uniqid()); // 应用初始化