From 416341cbd621df8ab65d35f0606f1425aa82984a Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 18 Aug 2022 11:29:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=AF=B9=E8=B1=A1=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/comp_gateroute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 466266e84..54cc89389 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -186,7 +186,7 @@ func (this *SCompGateRoute) ReceiveMsg(ctx context.Context, args *pb.AgentMessag //RPC_NoticeUserClose 接收用户登录通知 func (this *SCompGateRoute) NoticeUserLogin(ctx context.Context, args *pb.NoticeUserLoginReq, reply *pb.RPCMessageReply) error { model := db.NewDBModel(comm.TableSession, db.Local()) - model.Change(args.UserId, map[string]interface{}{ + model.AddList("online", args.UserId, map[string]interface{}{ "uid": args.UserId, "sessionId": args.UserSessionId, "serviceTag": args.ServiceTag,