|
@@ -296,7 +296,7 @@ class PVPProc {
|
|
|
'fightTicket' => $pvp->fightTicket, # # 自己的挑战票
|
|
|
'defTeam' => $pvp->defTeam, # # 自己的防守队伍
|
|
|
'bHasNewFightLog' => $numNewLog, # # 是否有战报刷新
|
|
|
- 'matches' => $matches, # # 对手列表
|
|
|
+ 'matches' => my_null_default($matches, array()), # # 对手列表
|
|
|
);
|
|
|
return Resp::ok($ret); # 返回
|
|
|
}
|
|
@@ -572,7 +572,7 @@ class PVPProc {
|
|
|
$key = MemKey_GameRun::Game_PVPScoreByZoneSeason_zset($zoneid, $seasonID); # redis key
|
|
|
$arr = self::findmatcher($key, $uid); # 积分榜查找
|
|
|
if (count($arr) < self::matchCount) { # 再不行, 准备机器人吧
|
|
|
- CLog::err('PVP刷对手数量不足, 赶快考虑加入机器人.', 'PVP'); // todo: 这里引入gm对手数据,
|
|
|
+ CLog::err('PVP刷对手数量不足, 赶快考虑加入机器人.', 'PVP'); // todo: 这里引入gm对手数据,
|
|
|
}
|
|
|
$ret = self::GetPlayerInfosForPVP(gMem(), $zoneid, $arr);
|
|
|
return $ret;
|