1
This commit is contained in:
parent
93fc71290e
commit
4e45d080dc
@ -129,6 +129,12 @@ class MatchController extends BaseAuthedController {
|
|||||||
} else {
|
} else {
|
||||||
$currMatchDb = json_decode($currMatchDb, true);
|
$currMatchDb = json_decode($currMatchDb, true);
|
||||||
$delTeams = array();
|
$delTeams = array();
|
||||||
|
$selfTeamDb = $currMatchDb[$teamUuid];
|
||||||
|
if ($selfTeamDb && myself()->_getNowTime() - $selfTeamDb['match_time'] > 7) {
|
||||||
|
$this->matchOk($r, $teamUuid, $selfTeamDb);
|
||||||
|
$this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid));
|
||||||
|
array_push($delTeams, $teamUuid);
|
||||||
|
} else {
|
||||||
foreach ($currMatchDb as $key => $val) {
|
foreach ($currMatchDb as $key => $val) {
|
||||||
$tmpTeamDb = $this->readTeamDb($r, $key);
|
$tmpTeamDb = $this->readTeamDb($r, $key);
|
||||||
if (!empty($tmpTeamDb) || $this->_getNowTime() - $tmpTeamDb['match_time'] > 120) {
|
if (!empty($tmpTeamDb) || $this->_getNowTime() - $tmpTeamDb['match_time'] > 120) {
|
||||||
@ -152,6 +158,7 @@ class MatchController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}//end foreach $currMatchDb
|
}//end foreach $currMatchDb
|
||||||
|
}
|
||||||
if (count($delTeams) > 0) {
|
if (count($delTeams) > 0) {
|
||||||
foreach ($delTeams as $id) {
|
foreach ($delTeams as $id) {
|
||||||
unset($delTeams[$id]);
|
unset($delTeams[$id]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user