修复空对象异常错误

This commit is contained in:
liwei 2022-08-18 11:34:56 +08:00
parent 34bc631c9c
commit e3d177e476

View File

@ -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