From df57bbdec392d9a821f5fa7e0c0265f5fe5ee29d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Dec 2023 11:38:47 +0800 Subject: [PATCH] 1 --- doc/Match.py | 2 +- webapp/controller/MatchController.class.php | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/Match.py b/doc/Match.py index 85076743..abcccf65 100644 --- a/doc/Match.py +++ b/doc/Match.py @@ -17,7 +17,7 @@ class Match(object): ], 'response': [ _common.RspHead(), - ['info', _common.MatchInfo(), '队伍唯一id'], + ['info', _common.MatchInfo(), '匹配信息'], ] }, { diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php index 4d49e12f..f5a9afc4 100644 --- a/webapp/controller/MatchController.class.php +++ b/webapp/controller/MatchController.class.php @@ -24,7 +24,7 @@ use models\HeroSkin; class MatchController extends BaseAuthedController { - public function teamInfo() + public function getMatchInfo() { $teamUuid = getReqVal('team_uuid', ''); $r = $this->_getRedis($teamUuid); @@ -39,4 +39,14 @@ class MatchController extends BaseAuthedController { )); } + public function cancel() + { + $teamUuid = getReqVal('team_uuid', ''); + $r = $this->_getRedis($teamUuid); + $teamDb = $this->readTeamDb($r, $teamUuid); + if (!empty($teamDb)) { + } + $this->_rspOk(); + } + }