Beispiel #1
0
 /**
  * @Purpose:
  * 获取英雄出战状态
  * @Method Name: get_hero_state()
  * @Parameter: $player_id 玩家ID
  * @Parameter: $hero_id 英雄 ID
  * @Return: mixed 返回英雄出战状态
  */
 public function get_hero_state_p2s($player_id, $hero_id)
 {
     $player_id = intval($player_id);
     $hero_id = strval($hero_id);
     $obj_player_hero_data = $this->get_data('PlayerHero');
     $data = $obj_player_hero_data->get_player_hero_info($player_id, $hero_id);
     if (!$data) {
         $this->throw_error('10106');
     }
     return Struct_Hero::get_hero_state_struct_p2s($data);
 }