This commit is contained in:
meixiongfeng 2022-08-03 10:45:42 +08:00
parent 49a42793c6
commit e54b34c550

View File

@ -126,14 +126,10 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
CostHeroObj[k] = tagHero
}
if target.Needheronum <= costNeedHeroCount || target.Needracenum <= costRaceHeroCount {
if target.Needheronum > costNeedHeroCount || target.Needracenum > costRaceHeroCount {
code = pb.ErrorCode_ReqParameterError
return
}
// if !bCheckRacehero || !bCheckNeedhero {
// code = pb.ErrorCode_ReqParameterError
// return // 校验失败
// }
// 金币消耗判断
curGold := this.module.ModuleUser.QueryAttributeValue(session.GetUserId(), "gold")