Kernel.php 2.0 KB

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