1
This commit is contained in:
parent
8bd3b443ec
commit
33347004a5
@ -33,13 +33,15 @@ class MatchController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$matchInfo = array(
|
$matchInfo = array(
|
||||||
|
'state' => 0,
|
||||||
|
'team_list' => array()
|
||||||
);
|
);
|
||||||
$matchOkDb = $this->readMatchOk($r, $teamUuid);
|
$matchOkDb = $this->readMatchOk($r, $teamUuid);
|
||||||
if ($matchOkDb) {
|
if ($matchOkDb) {
|
||||||
$this->refreshKeyExpire($r, MATCH_OK_KEY . $teamUuid, 1000*600);
|
$this->refreshKeyExpire($r, MATCH_OK_KEY . $teamUuid, 1000*600);
|
||||||
$this->refreshKeyExpire($r, MATCH_OK_KEY . $matchOkDb['target_team'], 1000*600);
|
$this->refreshKeyExpire($r, MATCH_OK_KEY . $matchOkDb['target_team'], 1000*600);
|
||||||
$this->refreshKeyExpire($r, TEAMID_KEY . $matchOkDb['target_team'], 1000*600);
|
$this->refreshKeyExpire($r, TEAMID_KEY . $matchOkDb['target_team'], 1000*600);
|
||||||
|
$this->fillMatchInfo($r, $matchInfo);
|
||||||
} else {
|
} else {
|
||||||
$currMatchDb = $this->readCurrMatchTeam($r);
|
$currMatchDb = $this->readCurrMatchTeam($r);
|
||||||
if (empty($currMatchDb)) {
|
if (empty($currMatchDb)) {
|
||||||
@ -52,6 +54,7 @@ class MatchController extends BaseAuthedController {
|
|||||||
} else {
|
} else {
|
||||||
if ($currMatchDb['current_team'] != $teamUuid) {
|
if ($currMatchDb['current_team'] != $teamUuid) {
|
||||||
$this->matchOk($r, $teamUuid, $currMatchDb);
|
$this->matchOk($r, $teamUuid, $currMatchDb);
|
||||||
|
$this->fillMatchInfo($r, $matchInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -140,4 +143,9 @@ class MatchController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function fillMatchInfo($r, &$matchInfo)
|
||||||
|
{
|
||||||
|
$matchInfo['state'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user