diff --git a/modules/gateway/agent.go b/modules/gateway/agent.go index 791e829e1..d5f8ae28a 100644 --- a/modules/gateway/agent.go +++ b/modules/gateway/agent.go @@ -52,6 +52,7 @@ type Agent struct { uId string wId string cwid string + group int32 writeChan chan [][]byte closeSignal chan bool state int32 //状态 0 关闭 1 运行 2 关闭中 @@ -420,6 +421,7 @@ func (this *Agent) messageDistribution(msg *pb.UserMessage) (err error) { req.Ip = this.IP() req.UserSessionId = this.sessionId req.UserId = this.uId + req.Group = this.group req.ServiceTag = this.gateway.Service().GetTag() req.GatewayServiceId = this.gateway.Service().GetId() req.MainType = msg.MainType @@ -525,6 +527,7 @@ func (this *Agent) messageDistribution(msg *pb.UserMessage) (err error) { loginresp = resp.(*pb.UserLoginResp) this.uId = loginresp.Data.Uid this.wId = reply.ServiceId + this.group = loginresp.Data.Group this.gateway.LoginNotice(this) } }