bug
This commit is contained in:
parent
49a42793c6
commit
e54b34c550
@ -126,14 +126,10 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
|
|||||||
CostHeroObj[k] = tagHero
|
CostHeroObj[k] = tagHero
|
||||||
}
|
}
|
||||||
|
|
||||||
if target.Needheronum <= costNeedHeroCount || target.Needracenum <= costRaceHeroCount {
|
if target.Needheronum > costNeedHeroCount || target.Needracenum > costRaceHeroCount {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// if !bCheckRacehero || !bCheckNeedhero {
|
|
||||||
// code = pb.ErrorCode_ReqParameterError
|
|
||||||
// return // 校验失败
|
|
||||||
// }
|
|
||||||
|
|
||||||
// 金币消耗判断
|
// 金币消耗判断
|
||||||
curGold := this.module.ModuleUser.QueryAttributeValue(session.GetUserId(), "gold")
|
curGold := this.module.ModuleUser.QueryAttributeValue(session.GetUserId(), "gold")
|
||||||
|
Loading…
Reference in New Issue
Block a user