|
@@ -46,14 +46,6 @@ class Kernel extends ConsoleKernel
|
|
*/
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
{
|
|
- $schedule->command('book:update')->hourly()->when(function () {
|
|
|
|
- $now_hour = date('G');
|
|
|
|
- if ($now_hour % 4 == 0) {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
// 推送任务每分钟执行
|
|
// 推送任务每分钟执行
|
|
$schedule->command('push:task')->everyMinute()->sendOutputTo(storage_path('pushCommand-' . date('Y-m-d')));
|
|
$schedule->command('push:task')->everyMinute()->sendOutputTo(storage_path('pushCommand-' . date('Y-m-d')));
|
|
}
|
|
}
|