Kernel.php 1.7 KB

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