option('action'); $beginUid = $this->option('begin_uid'); $endUid = $this->option('end_uid'); $this->info("beginUid: $beginUid, endUid: $endUid, action: $action"); if ($action == 'seed_bonus') { CalculateSeedBonus::dispatch($beginUid, $endUid); } elseif ($action == 'seeding_leeching_time') { UpdateSeedingLeechingTime::dispatch($beginUid, $endUid); } else { $msg = "Invalid action: $action"; do_log($msg, 'error'); $this->error($msg); } return Command::SUCCESS; } }