This commit is contained in:
aozhiwei 2024-01-02 15:11:06 +08:00
parent d9b3415e92
commit 1b2ff4ff00

View File

@ -203,6 +203,13 @@ class MatchController extends BaseAuthedController {
}
error_log(json_encode($matchOkDb));
$matchInfo['state'] = 1;
$data = array(
'zid' => '',
'node_id' => '',
'room_uuid' => '',
'start_time' => myself()->_GetNowTime(),
'team_list' => array()
);
$teamList = array();
{
$teamDb = $this->readTeamDb($r, $teamUuid);
@ -217,6 +224,9 @@ class MatchController extends BaseAuthedController {
));
}
array_push($teamList, $teamInfo);
$data['zid'] = $teamDb['zid'];
$data['node_id'] = $teamDb['node_id'];
$data['room_uuid'] = $teamDb['team_uuid'];
}
{
$teamDb = $this->readTeamDb($r, $matchOkDb['target_team']);
@ -230,8 +240,9 @@ class MatchController extends BaseAuthedController {
array_push($teamList, $teamInfo);
}
}
$payload = md5(json_encode($teamList) . '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)') .
":moba_room|" . json_encode($teamList);
$data['team_list'] = $teamList;
$payload = md5(json_encode($data) . '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)') .
":moba_room|" . json_encode($data);
$matchInfo['join_msg'] = array(
'team_uuid' => $teamUuid,
'payload' => $payload