数据校验

This commit is contained in:
meixiongfeng 2022-10-20 10:12:39 +08:00
parent 28dcdb73e1
commit 800d0203d1

View File

@ -63,8 +63,8 @@ func (this *apiComp) Fusion(session comm.IUserSession, req *pb.HeroFusionReq) (c
return return
} }
} }
for k, v := range _costMaphero { for k, v := range req.Heros {
code = this.module.DelCard(session.GetUserId(), v, mapHero[k]) code = this.module.DelCard(session.GetUserId(), _costMaphero[k], v)
if code != pb.ErrorCode_Success { if code != pb.ErrorCode_Success {
return return
} }