From 941985477517805228e4c4851dabd158518e0604 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Dec 2023 14:40:24 +0800 Subject: [PATCH] 1 --- webapp/controller/MatchController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php index 564b7d84..80670b03 100644 --- a/webapp/controller/MatchController.class.php +++ b/webapp/controller/MatchController.class.php @@ -46,7 +46,9 @@ class MatchController extends BaseAuthedController { $r->set(MATCH_CURRENT_TEAM_KEY, json_encode($currMatchDb)); $this->refreshKeyExpire($r, MATCH_CURRENT_TEAM_KEY, 1000*600); } else { - + if ($currMatchDb['current_team'] != $teamUuid) { + $this->matchOk($r, $teamUuid, $currMatchDb); + } } } $this->_rspData(array( @@ -113,4 +115,9 @@ class MatchController extends BaseAuthedController { $r->pexpire($key, $time); } + private function matchOk($r, $teamUuid, $currMatchDb) + { + + } + }