feat: 优化定时任务输出

This commit is contained in:
augushong
2025-08-23 23:07:55 +08:00
parent 4b1e28098f
commit 716e56b8dc

View File

@@ -48,14 +48,16 @@ class TimerBase extends Command
return; return;
} }
$site_host = parse_url($site_domain, PHP_URL_HOST);
$output->writeln('站点域名:' . $site_domain);
$host = $site_domain; $host = $site_domain;
if ($input->hasOption('local')) { if ($input->hasOption('local')) {
$host = $input->getOption('local-host') . ':' . $input->getOption('local-port'); $host = $input->getOption('local-host') . ':' . $input->getOption('local-port');
} }
$output->writeln('站点域名:' . $host);
$site_host = parse_url($host, PHP_URL_HOST);
$config_list = include app_file_path('common/command/timer/config.php'); $config_list = include app_file_path('common/command/timer/config.php');
$request_list = []; $request_list = [];