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) { if ($currMatchDb['current_team'] != $teamUuid) {
$this->matchOk($r, $teamUuid, $currMatchDb); $this->matchOk($r, $teamUuid, $currMatchDb);
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid)); $this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid));
} else {
} }
} }
} }
@ -160,8 +161,10 @@ 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) {
array_push($matchInfo['team_list'], $teamDb); array_push($matchInfo['team_list'], $teamDb);
} }
} }
}
} }