Jelajahi Sumber

book update

zz 5 tahun lalu
induk
melakukan
b4647081a0
2 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 1 1
      app/Console/Commands/BookUpdate.php
  2. 2 0
      app/Console/Kernel.php

+ 1 - 1
app/Console/Commands/BookUpdate.php

@@ -142,7 +142,7 @@ class BookUpdate extends Command
                     if ($v['chapter_id'] != $ly_last_chapter_id) {
                         continue;
                     } else {
-                        \Log::info($v1);
+                        \Log::info($v);
                         $start = true;
                         continue;
                     }

+ 2 - 0
app/Console/Kernel.php

@@ -35,6 +35,8 @@ class Kernel extends ConsoleKernel
      */
     protected function schedule(Schedule $schedule)
     {
+        $schedule->command('book:update')->dailyAt('22:00');
 
+        $schedule->command('book:update')->dailyAt('10:00');
     }
 }