From a9a6325ccbc8c70841183aae7c3ab603d3d03997 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 30 Jun 2023 14:47:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=94=B6session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/sys/module.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/sys/module.go b/modules/sys/module.go index 7993a9868..9f9238ad0 100644 --- a/modules/sys/module.go +++ b/modules/sys/module.go @@ -146,6 +146,12 @@ func (this *ModuleSys) CheckOpenCondCfgById(uid string, id string) (bOpen bool, func (this *ModuleSys) OpenCond(ctx context.Context, req *pb.RPCFriendNumReq, resp interface{}) (err error) { if session, ok := this.GetUserSession(req.Uid); ok { this.AutoActivate(session, req.Cond) + if err = session.Push(); err != nil { + this.Errorln(err) + } + this.PutUserSession(session) + } else { + this.PutUserSession(session) } return