From 9ad0ff2a489a81cd4531df3a2d733e514cb2d960 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 13 Oct 2022 15:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9C=88=E4=B9=8B=E7=A7=98?= =?UTF-8?q?=E5=A2=83=E8=B4=AD=E4=B9=B0=E6=B5=8B=E8=AF=95=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/moonfantasy/api_buy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/moonfantasy/api_buy.go b/modules/moonfantasy/api_buy.go index d570051fb..a930c09d8 100644 --- a/modules/moonfantasy/api_buy.go +++ b/modules/moonfantasy/api_buy.go @@ -34,7 +34,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.MoonfantasyBuyReq) ( } need = make([]*cfg.Gameatn, 0) for i := int32(0); i < req.BuyNum; i++ { - if challengeD, err = this.module.configure.GetchallengeData(umfantasy.BuyNum + i); err != nil { + if challengeD, err = this.module.configure.GetchallengeData(umfantasy.BuyNum + i + 1); err != nil { code = pb.ErrorCode_ConfigNoFound return }