From fd07b6d58d73c6a6e81f5f42e435886aadf6fd91 Mon Sep 17 00:00:00 2001 From: 2017noobman <2017noobman@gmail.com> Date: Thu, 22 Mar 2018 23:14:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit larabbs:sync-user-actived-at 从 Redis 中同步最后登录时间到数据库中 每天早上 0 点准时 --- app/Console/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 55d451fab..e20b188f7 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -31,7 +31,7 @@ protected function schedule(Schedule $schedule) $schedule->command('larabbs:calculate-active-user')->hourly(); // 每日零时执行一次 - $schedule->command('larabbs:calculate-active-user')->dailyAt('00:00'); + $schedule->command('larabbs:sync-user-actived-at')->dailyAt('00:00'); } /**