添加判空

This commit is contained in:
zhaocy 2022-06-13 21:04:44 +08:00
parent 69cfaf0737
commit b9d51378f3

View File

@ -66,7 +66,10 @@ func (this *LoginComp) Login(ctx context.Context, session comm.IUserSession, req
},
})
if db_user != nil {
event.TriggerEvent(comm.Event_UserLogin, db_user.Uid)
}
}()
if !utils.ValidSecretKey(req.Sec) {