From 3bbe10dcd7461eca3f0c9e141acafb9a09037fce Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Dec 2023 10:58:24 +0800 Subject: [PATCH] 1 --- webapp/controller/MatchController.class.php | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 webapp/controller/MatchController.class.php diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php new file mode 100644 index 00000000..4d49e12f --- /dev/null +++ b/webapp/controller/MatchController.class.php @@ -0,0 +1,42 @@ +_getRedis($teamUuid); + $teamDb = $this->readTeamDb($r, $teamUuid); + if (empty($teamDb)) { + $this->_rspErr(1, 'The team has been disbanded'); + return; + } + $r->pexpire(TEAMID_KEY . $teamUuid, 1000*600); + $this->_rspData(array( + 'team_info' => $teamDb + )); + } + +}