This commit is contained in:
aozhiwei 2023-09-15 22:24:15 +08:00
parent a39d2c3047
commit 080ffaa9d3
2 changed files with 9 additions and 7 deletions

View File

@ -14,6 +14,7 @@ type player struct {
room common.Room
accountId string
sessionId string
teamUuid string
zoneId int32
nodeId int32
name string
@ -44,6 +45,7 @@ func (this *player) init(req *pendingLoginRequest, name string, avatarUrl string
this.socket = req.hdr.GetSocket()
this.accountId = req.msg.GetAccountId()
this.sessionId = req.msg.GetSessionId()
//this.teamUuid = req.msg.GetTeamUuid()
this.zoneId = req.msg.GetZoneId()
this.nodeId = req.msg.GetNodeId()
this.name = name
@ -83,7 +85,7 @@ func (this *player) GetPing() int32 {
}
func (this *player) GetTeamUuid() string {
return ""
return this.teamUuid
}
func (this *player) GetZoneId() int32 {

View File

@ -145,8 +145,8 @@ message MFCurrentRoom
//
message CMLogin
{
optional int32 server_id = 1; //
optional string team_uuid = 2; //
optional int32 reserverd0 = 1; //
optional string reserved1 = 2; //
optional string account_id = 3; //id
optional int32 proto_version = 5; //Constant_e.ProtoVersion
optional string session_id = 20; //id
@ -165,13 +165,12 @@ message SMLogin
//线
message CMReconnect
{
optional int32 server_id = 1; //
optional string team_uuid = 2; //
optional int32 reserved0 = 1; //
optional string reserved1 = 2; //
optional string account_id = 3; //id
optional string session_id = 4; //session_id
optional string room_uuid = 5; //id
optional string reserverd2 = 5; //
optional string server_info = 6; //
}
//线
@ -188,6 +187,7 @@ message CMCreateRoom
optional int32 zone_id = 2; //id
optional int32 node_id = 3; //id
optional string passwd = 4; //
optional string team_uuid = 5; //
}
message SMCreateRoom