This commit is contained in:
aozhiwei 2023-12-26 16:33:29 +08:00
parent 91a6b5c15d
commit 12b0abc9c0

View File

@ -55,6 +55,7 @@ class MatchController extends BaseAuthedController {
if ($currMatchDb['current_team'] != $teamUuid) {
$this->matchOk($r, $teamUuid, $currMatchDb);
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid));
} else {
}
}
}
@ -160,7 +161,9 @@ class MatchController extends BaseAuthedController {
}
{
$teamDb = $this->readTeamDb($r, $matchOkDb['target_team']);
array_push($matchInfo['team_list'], $teamDb);
if (!empty($teamDb) && $teamDb['team_uuid'] != $teamUuid) {
array_push($matchInfo['team_list'], $teamDb);
}
}
}