command('inspire')->hourly(); $schedule->call(function () { (new Orders())->generateTodayOrderItems(); })->everyMinute(); $schedule->call(function () { (new OrderItems())->autoCheckout(true); })->everyMinute() ->timezone('Asia/Shanghai') ->between('00:00', '21:59'); $schedule->call(function () { (new OrderItems())->autoCheckout(); })->everyMinute() ->timezone('Asia/Shanghai') ->between('22:00', '23:59'); //通知公告发送,短信及微信模板消息 $schedule->call(function () { (new Notifications())->sendSchedule(); })->everyMinute(); //自动退款 $schedule->call(function () { (new Refund())->autoRefund(); })->everyMinute(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__ . '/Commands'); require base_path('routes/console.php'); } }