option('action'); $beginId = $this->option('begin_id'); $endId = $this->option('end_id'); $idStr = $this->option('id_str') ?: ""; $idRedisKey = $this->option('id_redis_key') ?: ""; $commentRequestId = $this->option('request_id'); $delay = $this->option('delay') ?: 0; $this->info("beginId: $beginId, endId: $endId, idStr: $idStr, idRedisKey: $idRedisKey, commentRequestId: $commentRequestId, delay: $delay, action: $action"); if ($action == 'seed_bonus') { CalculateUserSeedBonus::dispatch($beginId, $endId, $idStr, $idRedisKey, $commentRequestId)->delay($delay); } elseif ($action == 'seeding_leeching_time') { UpdateUserSeedingLeechingTime::dispatch($beginId, $endId, $idStr, $idRedisKey, $commentRequestId)->delay($delay); }elseif ($action == 'seeders_etc') { UpdateTorrentSeedersEtc::dispatch($beginId, $endId, $idStr, $idRedisKey, $commentRequestId)->delay($delay); } else { $msg = "[$commentRequestId], Invalid action: $action"; do_log($msg, 'error'); $this->error($msg); } return Command::SUCCESS; } }