mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat: 优化curd临时文件生成时输出内容效果,方便编辑器定位文件;
This commit is contained in:
@@ -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 . ' ');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user