月卡每日奖励发放
This commit is contained in:
parent
4ddf74c351
commit
d89e6b0898
@ -29,6 +29,7 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
|
|||||||
lastLoginTime int64
|
lastLoginTime int64
|
||||||
err error
|
err error
|
||||||
tasks []*pb.BuriedParam = make([]*pb.BuriedParam, 0)
|
tasks []*pb.BuriedParam = make([]*pb.BuriedParam, 0)
|
||||||
|
firstLogin bool
|
||||||
)
|
)
|
||||||
|
|
||||||
if errdata = this.LoginCheck(session, req); errdata != nil {
|
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, // 重置每日消耗体力
|
"consumPs": 0, // 重置每日消耗体力
|
||||||
"loginContinueCount": expand.LoginContinueCount + 1,
|
"loginContinueCount": expand.LoginContinueCount + 1,
|
||||||
})
|
})
|
||||||
this.module.ModulePrivilege.CheckAllPrivilege(session) // 检查月卡每日邮件奖励发放
|
firstLogin = true
|
||||||
}
|
}
|
||||||
err = this.module.modelUser.Change(user.Uid, update)
|
err = this.module.modelUser.Change(user.Uid, update)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -146,6 +147,9 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err
|
|||||||
if len(tasks) > 0 {
|
if len(tasks) > 0 {
|
||||||
this.module.ModuleBuried.TriggerBuried(session.Clone(), tasks...)
|
this.module.ModuleBuried.TriggerBuried(session.Clone(), tasks...)
|
||||||
}
|
}
|
||||||
|
if firstLogin {
|
||||||
|
this.module.ModulePrivilege.CheckDailyPrivilegeMail(session) // 检查月卡每日邮件奖励发放
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user