Kernel.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace app\console;
  3. defined('IN_IA') or define('IN_IA',true);
  4. use app\console\Commands\FixMemberRelease;
  5. use app\console\Commands\MemberRelease;
  6. use app\framework\Redis\RedisServiceProvider;
  7. use app\console\Commands\WriteFrame;
  8. use app\framework\Foundation\Bootstrap\SetRequestForConsole;
  9. use Illuminate\Console\Scheduling\Schedule;
  10. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  11. class Kernel extends ConsoleKernel
  12. {
  13. /**
  14. * The Artisan commands provided by your application.
  15. *
  16. * @var array
  17. */
  18. protected $commands = [
  19. 'app\console\Commands\UpdateVersion',
  20. 'app\console\Commands\RepairWithdraw',
  21. 'app\console\Commands\Test',
  22. 'app\console\Commands\Shop',
  23. 'app\console\Commands\WechatOpen',
  24. 'app\console\Commands\RebuildDb',
  25. 'app\console\Commands\MigrateHFLevelExcelData',
  26. 'app\console\Commands\MigrateMemberDistributor',
  27. 'app\console\Commands\UpdateInviteCode',
  28. 'app\console\Commands\CorrectionSupplierData',
  29. 'app\console\Commands\RetryCommand',
  30. WriteFrame::class,
  31. MemberRelease::class,
  32. FixMemberRelease::class,
  33. // \app\console\Commands\ZhuzherCurl::class
  34. // CreditSeed::class
  35. ];
  36. /**
  37. * The bootstrap classes for the application.
  38. *
  39. * @var array
  40. */
  41. protected $bootstrappers = [
  42. \Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables::class,
  43. \Illuminate\Foundation\Bootstrap\LoadConfiguration::class,
  44. \Illuminate\Foundation\Bootstrap\HandleExceptions::class,
  45. \Illuminate\Foundation\Bootstrap\RegisterFacades::class,
  46. \app\framework\Foundation\Bootstrap\SetRequestForConsole::class,
  47. \Illuminate\Foundation\Bootstrap\RegisterProviders::class,
  48. \Illuminate\Foundation\Bootstrap\BootProviders::class,
  49. ];
  50. /**
  51. * Define the application's command schedule.
  52. *
  53. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  54. * @return void
  55. */
  56. protected function schedule(Schedule $schedule)
  57. {
  58. // $schedule->command('inspire')
  59. // ->hourly();
  60. // $schedule->command('ZhuzherCurl')->everyMinute();
  61. // $schedule->command('CreditSeed')->everyMinute();
  62. }
  63. /**
  64. * Register the Closure based commands for the application.
  65. *
  66. * @return void
  67. */
  68. protected function commands()
  69. {
  70. require base_path('routes/console.php');
  71. }
  72. }