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 {