From 99f20cc81b2aa1d67e034c8b607e9b64cb8ac74a Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 20 Dec 2023 10:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E4=BB=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/api_receive.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/entertainment/api_receive.go b/modules/entertainment/api_receive.go index bdf4da719..f4e42ab48 100644 --- a/modules/entertainment/api_receive.go +++ b/modules/entertainment/api_receive.go @@ -15,8 +15,8 @@ func (this *apiComp) ReceiveCheck(session comm.IUserSession, req *pb.EntertainRe // /获取系统公告 func (this *apiComp) Receive(session comm.IUserSession, req *pb.EntertainReceiveReq) (errdata *pb.ErrorData) { var ( - info *pb.DBXXLData - warorder *pb.Warorder + info *pb.DBXXLData + confs []*cfg.GamePassCheckData awards []*cfg.Gameatn award []*pb.UserAtno @@ -46,24 +46,24 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.EntertainReceive awards = make([]*cfg.Gameatn, 0) for _, v := range confs { if v.Parameter <= progress { - if warorder.Freeprogress < v.Parameter { + if info.Freeprogress < v.Parameter { awards = append(awards, v.FreeReward...) } - if warorder.Vip { - if warorder.Payprogress < v.Parameter { + if info.Vip { + if info.Payprogress < v.Parameter { awards = append(awards, v.PayReward...) } } } } - warorder.Freeprogress = progress - if warorder.Vip { - warorder.Payprogress = progress + info.Freeprogress = progress + if info.Vip { + info.Payprogress = progress } - warorder.Freeprogress = 1 - if warorder.Vip { - warorder.Payprogress = 1 + info.Freeprogress = 1 + if info.Vip { + info.Payprogress = 1 } if errdata, award = this.module.DispenseAtno(session, awards, true); errdata != nil {