From 716e56b8dcac0c382fe5a0a61bd95e70b67ff3ed Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 23 Aug 2025 23:07:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/common/command/TimerBase.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extend/base/common/command/TimerBase.php b/extend/base/common/command/TimerBase.php index 0117319..f575e18 100644 --- a/extend/base/common/command/TimerBase.php +++ b/extend/base/common/command/TimerBase.php @@ -48,14 +48,16 @@ class TimerBase extends Command return; } - $site_host = parse_url($site_domain, PHP_URL_HOST); - $output->writeln('站点域名:' . $site_domain); + $host = $site_domain; if ($input->hasOption('local')) { $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'); $request_list = []; @@ -132,7 +134,7 @@ class TimerBase extends Command Timer::add(1, function () use ($worker, $host, $site_host, $output, $input, $http) { $request_list = $worker->timerRequestList; foreach ($request_list as $request_item) { - $output->writeln(date('Y-m-d H:i:s') . ': build site request async:' . $request_item['target']); + $output->writeln(date('Y-m-d H:i:s') . ': build site request async: ' . $request_item['target']); if (!isset($request_item['is_running'])) { $request_item['is_running'] = false; } @@ -211,7 +213,7 @@ class TimerBase extends Command $type = $request_item['type']; switch ($type) { case 'site': - $output->writeln(date('Y-m-d H:i:s') . ': build site request async:' . $request_item['target']); + $output->writeln(date('Y-m-d H:i:s') . ': build site request async: ' . $request_item['target']); $list_promises[$request_item['name']] = $client->getAsync($request_item['target']); break;