This commit is contained in:
aozhiwei 2023-12-26 11:38:47 +08:00
parent 3bbe10dcd7
commit df57bbdec3
2 changed files with 12 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class Match(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['info', _common.MatchInfo(), '队伍唯一id'], ['info', _common.MatchInfo(), '匹配信息'],
] ]
}, },
{ {

View File

@ -24,7 +24,7 @@ use models\HeroSkin;
class MatchController extends BaseAuthedController { class MatchController extends BaseAuthedController {
public function teamInfo() public function getMatchInfo()
{ {
$teamUuid = getReqVal('team_uuid', ''); $teamUuid = getReqVal('team_uuid', '');
$r = $this->_getRedis($teamUuid); $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();
}
} }