This commit is contained in:
hujiabin 2023-09-20 16:58:02 +08:00
parent c473c09df4
commit 34744ce32c
2 changed files with 3 additions and 0 deletions

View File

@ -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'],

View File

@ -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' => '',