暂无描述

Kernel.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\AccessTokenDsUpdate;
  4. use App\Console\Commands\CustomerLabelDeal;
  5. use App\Console\Commands\SyncCorpData;
  6. use App\Console\Commands\GroupBasicInfo;
  7. use App\Console\Commands\GroupDetail;
  8. use App\Console\Commands\GroupMemberQuit;
  9. use App\Console\Commands\Test;
  10. use Illuminate\Console\Scheduling\Schedule;
  11. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  12. class Kernel extends ConsoleKernel
  13. {
  14. /**
  15. * The Artisan commands provided by your application.
  16. *
  17. * @var array
  18. */
  19. protected $commands = [
  20. GroupBasicInfo::class,
  21. GroupDetail::class,
  22. GroupMemberQuit::class,
  23. AccessTokenDsUpdate::class,
  24. SyncCorpData::class,
  25. Test::class,
  26. CustomerLabelDeal::class, // 客户流失及付费标识处理
  27. ];
  28. /**
  29. * Define the application's command schedule.
  30. *
  31. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  32. * @return void
  33. */
  34. protected function schedule(Schedule $schedule)
  35. {
  36. // $schedule->command('inspire')
  37. // ->hourly();
  38. }
  39. /**
  40. * Register the commands for the application.
  41. *
  42. * @return void
  43. */
  44. protected function commands()
  45. {
  46. $this->load(__DIR__.'/Commands');
  47. require base_path('routes/console.php');
  48. }
  49. }