1
This commit is contained in:
parent
f40ebe1918
commit
37c6a942ae
@ -119,12 +119,15 @@ class MatchController extends BaseAuthedController {
|
||||
$currMatchDb = $this->readCurrMatchTeam($r);
|
||||
if (empty($currMatchDb)) {
|
||||
$currMatchDb = array(
|
||||
$teamUuid => array(
|
||||
'current_team' => $teamUuid,
|
||||
'match_time' => $this->_getNowTime()
|
||||
)
|
||||
);
|
||||
$r->set(MATCH_CURRENT_TEAM_KEY, json_encode($currMatchDb));
|
||||
$this->refreshKeyExpire($r, MATCH_CURRENT_TEAM_KEY, 1000*600);
|
||||
} else {
|
||||
$currMatchDb = json_decode($currMatchDb, true);
|
||||
if ($currMatchDb['current_team'] != $teamUuid) {
|
||||
$this->matchOk($r, $teamUuid, $currMatchDb);
|
||||
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid));
|
||||
|
Loading…
x
Reference in New Issue
Block a user