上传捕羊结算协议
This commit is contained in:
parent
43c899498d
commit
e3ae5d11b8
@ -40,7 +40,7 @@ func (this *apiComp) RecoverHp(session comm.IUserSession, req *pb.ParkourRecover
|
||||
}
|
||||
}
|
||||
//恢复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 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
|
@ -219,7 +219,7 @@ func (this *configureComp) getActiveRewardByS(score int32) (conf *cfg.GameQualif
|
||||
this.module.Errorln(err)
|
||||
} else {
|
||||
for _, conf = range v.(*cfg.GameQualifying).GetDataList() {
|
||||
if score > conf.ScoreLow && score <= conf.ScoreUp {
|
||||
if score >= conf.ScoreLow && score <= conf.ScoreUp {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -591,7 +591,6 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
|
||||
for _, v := range battle.RedMember {
|
||||
if !v.Isai {
|
||||
|
||||
if danconf, err = this.configure.getActiveRewardByS(v.Integral); err != nil {
|
||||
this.Errorln(err)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user