This commit is contained in:
aozhiwei 2023-12-29 17:31:24 +08:00
parent f0c46fa934
commit 8fdf13c014
3 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,6 @@ class Match(object):
'response': [
_common.RspHead(),
['info', _common.MatchInfo(), '匹配信息'],
['join_msg', _common.SpecJoin(), '匹配成功后改字段才有意义传给CMJoin里的参数(team_uuid、payload)'],
]
},
{

View File

@ -1568,6 +1568,7 @@ class MatchInfo(object):
self.fields = [
['state',0,'状态 0:匹配中 1:匹配成功'],
['!team_list', MatchTeam(), '队伍列表(客户端自行判断所属哪个队伍)'],
['join_msg', SpecJoin(), '匹配成功后改字段才有意义传给CMJoin里的参数(team_uuid、payload)'],
]
class SpecJoin(object):

View File

@ -348,6 +348,7 @@ class BattleController extends BaseAuthedController {
$customData = json_decode($customData, true);
}
error_log(json_encode($customData));
$zoneId = $customData['zone_id'];
$nodeId = $customData['node_id'];
$roomUuid = $customData['room_uuid'];