This commit is contained in:
wh_zcy 2023-04-28 14:39:54 +08:00
commit 5ad4705391

View File

@ -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