上传捕羊结算协议

This commit is contained in:
liwei1dao 2023-11-13 13:52:37 +08:00
parent 43c899498d
commit e3ae5d11b8
3 changed files with 2 additions and 3 deletions

View File

@ -40,7 +40,7 @@ func (this *apiComp) RecoverHp(session comm.IUserSession, req *pb.ParkourRecover
} }
} }
//恢复hp //恢复hp
go this.module.recoverhp(req.Battleid, req.Uid, this.module.ModuleTools.GetGlobalConf().BuzkashiHpbumphp) go this.module.recoverhp(req.Battleid, session.GetUserId(), this.module.ModuleTools.GetGlobalConf().BuzkashiHpbumphp)
} else { } else {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError, Code: pb.ErrorCode_ReqParameterError,

View File

@ -219,7 +219,7 @@ func (this *configureComp) getActiveRewardByS(score int32) (conf *cfg.GameQualif
this.module.Errorln(err) this.module.Errorln(err)
} else { } else {
for _, conf = range v.(*cfg.GameQualifying).GetDataList() { for _, conf = range v.(*cfg.GameQualifying).GetDataList() {
if score > conf.ScoreLow && score <= conf.ScoreUp { if score >= conf.ScoreLow && score <= conf.ScoreUp {
return return
} }
} }

View File

@ -591,7 +591,6 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
for _, v := range battle.RedMember { for _, v := range battle.RedMember {
if !v.Isai { if !v.Isai {
if danconf, err = this.configure.getActiveRewardByS(v.Integral); err != nil { if danconf, err = this.configure.getActiveRewardByS(v.Integral); err != nil {
this.Errorln(err) this.Errorln(err)
continue continue