diff --git a/modules/arena/api_buy.go b/modules/arena/api_buy.go index 3fbc94846..7e6b29034 100644 --- a/modules/arena/api_buy.go +++ b/modules/arena/api_buy.go @@ -20,7 +20,6 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ArenaBuyReq) (code p var ( // global *cfg.GameGlobalData info *pb.DBArenaUser - challenge *cfg.GameArenaBuyChallengeData need []*cfg.Gameatn maxbuy, vipbuy int err error @@ -46,7 +45,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ArenaBuyReq) (code p return } if res := this.module.ModuleTools.GetPriceGroupCost(comm.ArenaBuyType, info.Buynum+i+1); len(res) > 0 { - need = append(need, challenge.Need...) + need = append(need, res...) } else { code = pb.ErrorCode_ConfigNoFound return