From 4b0267bd8af0c2b357916380ce6b4ff9c64c4756 Mon Sep 17 00:00:00 2001 From: lemon <15040771@qq.com> Date: Tue, 14 Sep 2021 10:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/BalanceDue.php | 1 + app/Console/Kernel.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/BalanceDue.php b/app/Console/Commands/BalanceDue.php index 56c54d0..bc00b98 100644 --- a/app/Console/Commands/BalanceDue.php +++ b/app/Console/Commands/BalanceDue.php @@ -43,6 +43,7 @@ class BalanceDue extends Command */ public function handle() { + Log::info('定时任务'); if (env('SMS_SWITCH' , '') == true) { $orders = Order::query() ->where('status', OrderStatus::PAY_EARNEST) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index cc7d349..e80234a 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -27,7 +27,7 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { $schedule->command('demand:timeout')->everyMinute(); - $schedule->command('balance:due')->dailyAt('10:30')->timezone('Asia/Shanghai'); + $schedule->command('balance:due')->timezone('Asia/Shanghai')->dailyAt('10:55'); // $schedule->command('inspire')->hourly(); }