From adc83ef9d900cdc32621bde13d35d42ec45c979d Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 19 May 2026 10:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=BC=80=E5=A7=8B=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E6=A8=A1=E5=BC=8F=E8=84=9A=E6=9C=AC2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Kernel.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e6b9960..baff712 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -12,7 +12,9 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule): void { - // $schedule->command('inspire')->hourly(); + $schedule->command('run:automatically-start-activity') + ->everyMinute() // 或者使用其他频率,如 hourly(), everyFiveMinutes() 等 + ->timezone('Asia/Shanghai'); // 设置时区,根据需要选择时区 } /** @@ -24,4 +26,9 @@ class Kernel extends ConsoleKernel require base_path('routes/console.php'); } + + protected $commands = [ + Commands\AutomaticallyStartActivity::class, + ]; + }