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,