月卡每日奖励发放

This commit is contained in:
meixiongfeng 2023-10-24 15:53:23 +08:00
parent 4ddf74c351
commit d89e6b0898

View File

@ -29,6 +29,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
lastLoginTime int64
err error
tasks []*pb.BuriedParam = make([]*pb.BuriedParam, 0)
firstLogin bool
)
if errdata = this.LoginCheck(session, req); errdata != nil {
@ -105,7 +106,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
"consumPs": 0, // 重置每日消耗体力
"loginContinueCount": expand.LoginContinueCount + 1,
})
this.module.ModulePrivilege.CheckAllPrivilege(session) // 检查月卡每日邮件奖励发放
firstLogin = true
}
err = this.module.modelUser.Change(user.Uid, update)
if err != nil {
@ -146,6 +147,9 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
if len(tasks) > 0 {
this.module.ModuleBuried.TriggerBuried(session.Clone(), tasks...)
}
if firstLogin {
this.module.ModulePrivilege.CheckDailyPrivilegeMail(session) // 检查月卡每日邮件奖励发放
}
})
return