Kernel.php 2.2 KB

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