1
This commit is contained in:
parent
5dae9b1edd
commit
cbadab33ed
@ -237,12 +237,19 @@ class MatchController extends BaseAuthedController {
|
|||||||
$teamDb = $this->readTeamDb($r, $matchOkDb['target_team']);
|
$teamDb = $this->readTeamDb($r, $matchOkDb['target_team']);
|
||||||
if (!empty($teamDb) && $teamDb['team_uuid'] != $teamUuid) {
|
if (!empty($teamDb) && $teamDb['team_uuid'] != $teamUuid) {
|
||||||
array_push($matchInfo['team_list'], $teamDb);
|
array_push($matchInfo['team_list'], $teamDb);
|
||||||
|
$teamInfo = array(
|
||||||
|
'team_uuid' => $teamDb['team_uuid'],
|
||||||
|
'members' => array()
|
||||||
|
);
|
||||||
foreach ($teamDb['member_list'] as $val) {
|
foreach ($teamDb['member_list'] as $val) {
|
||||||
array_push($teamInfo['members'], array(
|
array_push($teamInfo['members'], array(
|
||||||
'account_id' => $val['account_id']
|
'account_id' => $val['account_id']
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
array_push($teamList, $teamInfo);
|
array_push($teamList, $teamInfo);
|
||||||
|
if (strcasecmp($teamDb['team_uuid'], $data['room_uuid']) < 0) {
|
||||||
|
$data['room_uuid'] = $teamDb['team_uuid'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$data['team_list'] = $teamList;
|
$data['team_list'] = $teamList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user