From 91a6b5c15dc648b8ec402ac1af48e653a7c34ade Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Dec 2023 15:55:46 +0800 Subject: [PATCH] 1 --- webapp/controller/MatchController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php index 791e7786..2d3eea86 100644 --- a/webapp/controller/MatchController.class.php +++ b/webapp/controller/MatchController.class.php @@ -67,6 +67,11 @@ class MatchController extends BaseAuthedController { $r = $this->_getRedis($teamUuid); $teamDb = $this->readTeamDb($r, $teamUuid); if (!empty($teamDb)) { + $r->del(MATCH_OK_KEY . $teamUuid); + $matchOkDb = $this->readMatchOk($r, $teamUuid); + if ($matchOkDb) { + $r->del(MATCH_OK_KEY . $matchOkDb['target_team']); + } } $this->_rspOk(); }