Kernel.php 3.9 KB

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