Kernel.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\SyncBatchTask;
  4. use Illuminate\Console\Scheduling\Schedule;
  5. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  6. class Kernel extends ConsoleKernel
  7. {
  8. /**
  9. * The Artisan commands provided by your application.
  10. *
  11. * @var array
  12. */
  13. protected $commands = [
  14. \App\Console\Commands\LogExpireDelete::class,
  15. \App\Console\Commands\MakeServiceCommand::class,
  16. \App\Console\Commands\FluxOrderFix::class,
  17. \App\Console\Commands\InventoryDailyLoggingOwner::class,
  18. \App\Console\Commands\WASSyncWMSOrderInformation::class,
  19. \App\Console\Commands\SyncLogCacheTask::class,
  20. \App\Console\Commands\SyncUserVisitMenuLogsCacheTask::class,
  21. \App\Console\Commands\TestTemp::class,
  22. SyncBatchTask::class,
  23. ];
  24. /**
  25. * Define the application's command schedule.
  26. *
  27. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  28. * @return void
  29. */
  30. protected function schedule(Schedule $schedule)
  31. {
  32. $schedule->command('LogExpireDelete')->dailyAt('00:01');
  33. $schedule->command('InventoryDailyLoggingOwner')->dailyAt('08:00');
  34. $schedule->command('FluxOrderFix')->hourlyAt(1);
  35. $schedule->command('WASSyncWMSOrderInformation')->everyMinute();
  36. $schedule->command('syncLogCacheTask')->everyMinute();
  37. $schedule->command('createOwnerReport')->monthlyOn(1);
  38. $schedule->command('createOwnerBillReport')->monthlyOn(1);
  39. $schedule->command('createOwnerAreaReport')->monthlyOn(25);
  40. $schedule->command('sync:batch')->everyMinute();
  41. }
  42. /**
  43. * Register the commands for the application.
  44. *
  45. * @return void
  46. */
  47. protected function commands()
  48. {
  49. $this->load(__DIR__ . '/Commands');
  50. require base_path('routes/console.php');
  51. }
  52. }