소스 검색

fixed: 修改heroId

gwang 5 년 전
부모
커밋
af8e1d777b
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      Gameserver/Amfphp/process/FightProc/PVPProc.php

+ 4 - 2
Gameserver/Amfphp/process/FightProc/PVPProc.php

@@ -18,7 +18,9 @@ class PVPProc {
     public static function GetChallengeAdversaryInfo($req) {
         // 参数: 无
         $targetUID = $req->paras[0];                                            # 对手的UID
+//        var_dump($targetUID);
         $uinfo = UserProc::getUserInfo($req->mem, $req->zoneid, $targetUID);    # 读取玩家信息
+//        var_dump($uinfo);
         if (null == $uinfo) {
             Err(ErrCode::user_no_err);
         }
@@ -28,8 +30,8 @@ class PVPProc {
         $curTeamId = $team->curUseTeamID;
         foreach ($team->teamDic->$curTeamId->heros as $hid) {
             if ($hid > 0) {
-                $hid -= 10000;
-                $heros->$hid = $uinfo->game->heros->collectHeros->$hid;
+                $n_hid = $hid - 10000;
+                $heros->$n_hid = $uinfo->game->heros->collectHeros->$hid;
             }
         }
 //        $eqps = array();