From 108731254b06ab12131d646fbadde47981f3728f Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 15 Jan 2024 17:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85session=20group=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gateway/agent.go | 3 +++ 1 file changed, 3 insertions(+) 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) } }