|
@@ -700,10 +700,13 @@ class PVPProc {
|
|
|
private static function GetPlayerInfosForPVP($mem, $zoneid, $retUidsWithScore) {
|
|
|
$arr = ArrayInit();
|
|
|
foreach ($retUidsWithScore as $uid => $score) {
|
|
|
+// isEditor() && $userGameInfo = new loyalsoft\UserInfoMo;
|
|
|
$userGameInfo = UserProc::getUserInfo($mem, $zoneid, $uid); # 玩家数据
|
|
|
- $teamConfig = $userGameInfo->pvp->defTeam; # 防守阵容
|
|
|
+// var_dump($userGameInfo->game->pvp);
|
|
|
+ $teamConfig = $userGameInfo->game->pvp->defTeam; # 防守阵容
|
|
|
+// var_dump($teamConfig);
|
|
|
$heros = new \stdClass(); # 英雄集合
|
|
|
- foreach ($teamConfig->heros as $i => $hid) {
|
|
|
+ foreach ($teamConfig as $hid) {
|
|
|
if ($hid > 0) {
|
|
|
$n_hid = $hid - 10000;
|
|
|
$heros->$n_hid = $userGameInfo->game->heros->collectHeros->$hid;
|