/** * @Purpose: * 获取升星消耗英雄信息 * @param $player_id 玩家ID * @param $hero_id 英雄ID */ public function get_upstar_expend_hero_info($player_id, $hero_id) { $player_id = intval($player_id); $hero_id = strval($hero_id); //获取英雄数据 $obj_player_hero_data = $this->get_data('PlayerHero'); $hero_data = $obj_player_hero_data->get_player_hero_info($player_id, $hero_id); if (empty($hero_data)) { $this->throw_error('10102'); //英雄不存在 } $hero_data['rune_hole_list'] = Com_FmtData::cus_json_decode($hero_data['rune_hole_list']); //符文数据格式化 $hero_data['rune_hole_list'] = $this->format_rune($player_id, $hero_data['rune_hole_list']); //获取消耗英雄列表 $hero_data['hero_list'] = $this->get_expend_hero_list($player_id, $hero_id, $this->up_star_quality_limit, $this->up_star_quality_limit); return Struct_Hero::get_hero_upstar_expend_hero_struct($hero_data); }