mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 11:32:48 +08:00
优化curd临时生成对应到正式目录,方便IDE可直接定位打开
This commit is contained in:
@@ -131,7 +131,13 @@ class CurdBase extends Command
|
|||||||
}
|
}
|
||||||
$output->info('>>>>>>>>>>>>>>>');
|
$output->info('>>>>>>>>>>>>>>>');
|
||||||
foreach ($result as $vo) {
|
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) {
|
} catch (\Exception $e) {
|
||||||
$output->error($e->getMessage());
|
$output->error($e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user