1
This commit is contained in:
parent
6e11c16a12
commit
d9eeb30116
@ -41,7 +41,7 @@ class MatchController extends BaseAuthedController {
|
||||
$this->refreshKeyExpire($r, MATCH_OK_KEY . $teamUuid, 1000*600);
|
||||
$this->refreshKeyExpire($r, MATCH_OK_KEY . $matchOkDb['target_team'], 1000*600);
|
||||
$this->refreshKeyExpire($r, TEAMID_KEY . $matchOkDb['target_team'], 1000*600);
|
||||
$this->fillMatchInfo($r, $matchInfo, $matchOkDb);
|
||||
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $matchOkDb);
|
||||
} else {
|
||||
$currMatchDb = $this->readCurrMatchTeam($r);
|
||||
if (empty($currMatchDb)) {
|
||||
@ -54,7 +54,7 @@ class MatchController extends BaseAuthedController {
|
||||
} else {
|
||||
if ($currMatchDb['current_team'] != $teamUuid) {
|
||||
$this->matchOk($r, $teamUuid, $currMatchDb);
|
||||
$this->fillMatchInfo($r, $matchInfo, $this->readMatchOk($r, $teamUuid));
|
||||
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -143,12 +143,14 @@ class MatchController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
|
||||
private function fillMatchInfo($r, &$matchInfo, $matchOkDb)
|
||||
private function fillMatchInfo($r, $teamUuid, &$matchInfo, $matchOkDb)
|
||||
{
|
||||
if (empty($matchOkDb)) {
|
||||
return;
|
||||
}
|
||||
$matchInfo['state'] = 1;
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user