This commit is contained in:
aozhiwei 2023-12-26 19:17:08 +08:00
parent 93fc71290e
commit 4e45d080dc

View File

@ -129,6 +129,12 @@ class MatchController extends BaseAuthedController {
} else {
$currMatchDb = json_decode($currMatchDb, true);
$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) {
$tmpTeamDb = $this->readTeamDb($r, $key);
if (!empty($tmpTeamDb) || $this->_getNowTime() - $tmpTeamDb['match_time'] > 120) {
@ -152,6 +158,7 @@ class MatchController extends BaseAuthedController {
}
}
}//end foreach $currMatchDb
}
if (count($delTeams) > 0) {
foreach ($delTeams as $id) {
unset($delTeams[$id]);