|
@@ -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();
|