hero count 字段名变更
This commit is contained in:
parent
f963cd0a07
commit
6dc86fa32e
@ -46,12 +46,12 @@ func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.He
|
||||
code.Code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
} else {
|
||||
if tagHero.Count < v.Amount { // 校验数量
|
||||
if tagHero.SameCount < v.Amount { // 校验数量
|
||||
code.Code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
// 校验ID
|
||||
if tagHero.HeroID != target.Needhero && tagHero.Star != target.Needherostar && tagHero.Count < target.Needheronum {
|
||||
if tagHero.HeroID != target.Needhero && tagHero.Star != target.Needherostar && tagHero.SameCount < target.Needheronum {
|
||||
code.Code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ func (this *apiComp) StrengthenUplvCheck(session comm.IUserSession, req *pb.Hero
|
||||
if expConf != nil {
|
||||
addExp = expConf.Heroexp * req.Amount
|
||||
}
|
||||
if _expHero.Count <= req.Amount { // 消耗经验卡片数量不足
|
||||
if _expHero.SameCount <= req.Amount { // 消耗经验卡片数量不足
|
||||
code.Code = pb.ErrorCode_HeroNoEnough
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user