Prechádzať zdrojové kódy

command cancel update

zz 4 rokov pred
rodič
commit
88c009f7f0
1 zmenil súbory, kde vykonal 0 pridanie a 8 odobranie
  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')));
     }