소스 검색

command cancel update

zz 5 년 전
부모
커밋
88c009f7f0
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      app/Console/Kernel.php

+ 0 - 8
app/Console/Kernel.php

@@ -46,14 +46,6 @@ class Kernel extends ConsoleKernel
      */
     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')));
     }