From e3d177e47616f7a77a005dbccc0573fef32f958a Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 18 Aug 2022 11:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/module.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/user/module.go b/modules/user/module.go index 66ded5750..7fbe5cfa7 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -60,11 +60,7 @@ func (this *User) GetUser(uid string) *pb.DBUser { //获取用户会话 func (this *User) GetUserSession(uid string) *pb.CacheUser { - cuser := this.modelSession.getUserSession(uid) - if cuser.Uid == "" { - return nil - } - return cuser + return this.modelSession.getUserSession(uid) } // 清除session