diff --git a/modules/hero/api_fusion.go b/modules/hero/api_fusion.go index 69f57fe29..1ad308662 100644 --- a/modules/hero/api_fusion.go +++ b/modules/hero/api_fusion.go @@ -63,8 +63,8 @@ func (this *apiComp) Fusion(session comm.IUserSession, req *pb.HeroFusionReq) (c return } } - for k, v := range _costMaphero { - code = this.module.DelCard(session.GetUserId(), v, mapHero[k]) + for k, v := range req.Heros { + code = this.module.DelCard(session.GetUserId(), _costMaphero[k], v) if code != pb.ErrorCode_Success { return }