Jelajahi Sumber

command cancel update

zz 4 tahun lalu
induk
melakukan
88c009f7f0
1 mengubah file dengan 0 tambahan dan 8 penghapusan
  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')));
     }