上传主线经验消耗

This commit is contained in:
liwei1dao 2023-09-22 19:26:44 +08:00
parent 4af3391a4d
commit 4deef2c8b6

View File

@ -30,7 +30,7 @@ func (this *apiComp) LevelPass(session comm.IUserSession, req *pb.MainlineLevelP
star int32 // 评星
tasks []*pb.BuriedParam = make([]*pb.BuriedParam, 0)
err error
consumPs int32
// consumPs int32
)
if errdata = this.LevelPassCheck(session, req); errdata != nil {
return // 参数校验失败直接返回
@ -90,11 +90,11 @@ func (this *apiComp) LevelPass(session comm.IUserSession, req *pb.MainlineLevelP
}
aeward = append(aeward, atno...)
}
consumPs = info.Ps[req.Level]
if atno, errdata = this.module.ModuleUser.ConsumePsAddExp(session, consumPs); errdata != nil {
return
}
aeward = append(aeward, atno...)
// consumPs = info.Ps[req.Level]
// if atno, errdata = this.module.ModuleUser.ConsumePsAddExp(session, consumPs); errdata != nil {
// return
// }
// aeward = append(aeward, atno...)
user, err := this.module.ModuleUser.GetUser(session.GetUserId())
if err != nil {
errdata = &pb.ErrorData{