Kernel.php 3.7 KB

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