|
@@ -35,9 +35,16 @@ class Kernel extends ConsoleKernel
|
|
*/
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
{
|
|
- $schedule->command('book:update')->dailyAt('06:00');
|
|
|
|
|
|
+ //$schedule->command('book:update')->dailyAt('06:00');
|
|
|
|
|
|
- $schedule->command('book:update')->dailyAt('18:00');
|
|
|
|
|
|
+ //$schedule->command('book:update')->dailyAt('18:00');
|
|
|
|
+ $schedule->command('book:update')->hourly()->when(function (){
|
|
|
|
+ $now_hour = date('G');
|
|
|
|
+ if($now_hour %4 ==0){
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
|
|
|
|
//$schedule->command('checkOrderStatus')->everyMinute();
|
|
//$schedule->command('checkOrderStatus')->everyMinute();
|
|
}
|
|
}
|