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()); // 应用初始化