Kernel.php 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\CheckGooglePlayStore;
  4. use App\Console\Commands\CheckIosAppStore;
  5. use App\Console\Commands\CheckPaymentWarning;
  6. use App\Console\Commands\CheckStockModeNegative;
  7. use App\Console\Commands\DbQueue;
  8. use App\Console\Commands\OnlineReport;
  9. use App\Console\Commands\DecStock;
  10. use App\Console\Commands\ExemptReview;
  11. use App\Console\Commands\Extension;
  12. use App\Console\Commands\PayOrder;
  13. use App\Console\Commands\RecordPlatformData;
  14. use App\Console\Commands\RecordServerGameCount;
  15. use App\Console\Commands\RecordServerGameCountYesterday;
  16. use App\Console\Commands\RecordThreeGameYesterday;
  17. use App\Console\Commands\RecordPaidRewardDailyStatistics;
  18. use App\Console\Commands\RecordUserScoreChangeStatistics;
  19. use App\Console\Commands\SuperballUpdatePoolAndStats;
  20. use App\Console\Commands\WorldCupGenerateMissingReferralRewards;
  21. use Illuminate\Console\Scheduling\Schedule;
  22. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  23. class Kernel extends ConsoleKernel
  24. {
  25. /**
  26. * The Artisan commands provided by your application.
  27. *
  28. * @var array
  29. */
  30. protected $commands = [
  31. ExemptReview::class,
  32. PayOrder::class,
  33. Extension::class,
  34. CheckStockModeNegative::class,
  35. RecordPlatformData::class,
  36. RecordServerGameCount::class,
  37. RecordServerGameCountYesterday::class,
  38. RecordPaidRewardDailyStatistics::class,
  39. RecordUserScoreChangeStatistics::class,
  40. DecStock::class,
  41. CheckIosAppStore::class,
  42. CheckPaymentWarning::class,
  43. CheckGooglePlayStore::class,
  44. OnlineReport::class,
  45. DbQueue::class,
  46. RecordThreeGameYesterday::class,
  47. SuperballUpdatePoolAndStats::class,
  48. WorldCupGenerateMissingReferralRewards::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('db_queue')->everyMinute()->description('批量处理redis队列任务');
  59. $schedule->command('exempt_review')->everyMinute()->description('免审提现');
  60. $schedule->command('record_server_game_count')->cron('*/15 * * * * ')->description('按天统计游戏人数');
  61. $schedule->command('stock_mode:check_negative')->cron('*/5 * * * *')->description('检测库存模式房间库存是否为负并通过 Telegram 报警');
  62. $schedule->command('online_max')->cron('*/8 * * * * ')->description('最高在线人数统计');
  63. $schedule->command('record_server_game_count_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
  64. $schedule->command('RecordPlatformData')->cron('10 0 * * * ')->description('数据统计');
  65. $schedule->command('RecordPaidRewardDailyStatistics')->cron('15 0 * * * ')->description('付费用户奖励日统计');
  66. $schedule->command('RecordUserScoreChangeStatistics')->cron('03 0 * * * ')->description('用户金额变化明细按天按用户汇总');
  67. $schedule->command('superball:update-pool-stats')->everyMinute()->description('Superball 每分钟刷新奖池及展示统计');
  68. $schedule->command('online_report')->everyMinute()->description('每分钟统计曲线');
  69. $schedule->command('payment:check-warning')->everyMinute()->description('Check payment warning metrics');
  70. $schedule->command('ios:check-app-store')->everyMinute()->description('每5分钟检测 iOS App Store 包是否下架');
  71. $schedule->command('google:check-play-store')->everyMinute()->description('每5分钟检测 Google Play 包是否下架');
  72. // $schedule->command('record_three_game_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
  73. }
  74. /**
  75. * Register the commands for the application.
  76. *
  77. * @return void
  78. */
  79. protected function commands()
  80. {
  81. $this->load(__DIR__.'/Commands');
  82. // require base_path('routes/console.php');
  83. }
  84. }