diff --git a/doc/_common.py b/doc/_common.py index f06194d4..1859243c 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -693,6 +693,7 @@ class TeamInfo(object): def __init__(self): self.fields = [ + ['map_id', '', '地图id'], ['team_uuid', '', '队伍唯一id'], ['payload', '', '透传给CMJoin'], ['match_mode', 0, '0: 匹配赛模式 1: 排位赛 3: pve'], diff --git a/webapp/controller/TeamController.class.php b/webapp/controller/TeamController.class.php index e88db4e2..df097660 100644 --- a/webapp/controller/TeamController.class.php +++ b/webapp/controller/TeamController.class.php @@ -30,6 +30,7 @@ class TeamController extends BaseAuthedController { public function createTeam() { + $mapId = getReqVal('map_id', 0); $nodeId = getReqVal('node_id', 1); $matchMode = getReqVal('match_mode', 0); $pveInstanceId = getReqVal('pve_instance_id', 0); @@ -81,6 +82,7 @@ class TeamController extends BaseAuthedController { $userDto['permission'] = 1; $userDto['createtime'] = $userDb['createtime']; $teamDb = array( + 'map_id' => $mapId, 'team_uuid' => $teamUuid, 'state' => 0, 'payload' => '',