战令修改

This commit is contained in:
meixiongfeng 2023-12-20 10:39:17 +08:00
parent 0cba2d618c
commit 99f20cc81b

View File

@ -16,7 +16,7 @@ func (this *apiComp) ReceiveCheck(session comm.IUserSession, req *pb.EntertainRe
func (this *apiComp) Receive(session comm.IUserSession, req *pb.EntertainReceiveReq) (errdata *pb.ErrorData) { func (this *apiComp) Receive(session comm.IUserSession, req *pb.EntertainReceiveReq) (errdata *pb.ErrorData) {
var ( var (
info *pb.DBXXLData info *pb.DBXXLData
warorder *pb.Warorder
confs []*cfg.GamePassCheckData confs []*cfg.GamePassCheckData
awards []*cfg.Gameatn awards []*cfg.Gameatn
award []*pb.UserAtno award []*pb.UserAtno
@ -46,24 +46,24 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.EntertainReceive
awards = make([]*cfg.Gameatn, 0) awards = make([]*cfg.Gameatn, 0)
for _, v := range confs { for _, v := range confs {
if v.Parameter <= progress { if v.Parameter <= progress {
if warorder.Freeprogress < v.Parameter { if info.Freeprogress < v.Parameter {
awards = append(awards, v.FreeReward...) awards = append(awards, v.FreeReward...)
} }
if warorder.Vip { if info.Vip {
if warorder.Payprogress < v.Parameter { if info.Payprogress < v.Parameter {
awards = append(awards, v.PayReward...) awards = append(awards, v.PayReward...)
} }
} }
} }
} }
warorder.Freeprogress = progress info.Freeprogress = progress
if warorder.Vip { if info.Vip {
warorder.Payprogress = progress info.Payprogress = progress
} }
warorder.Freeprogress = 1 info.Freeprogress = 1
if warorder.Vip { if info.Vip {
warorder.Payprogress = 1 info.Payprogress = 1
} }
if errdata, award = this.module.DispenseAtno(session, awards, true); errdata != nil { if errdata, award = this.module.DispenseAtno(session, awards, true); errdata != nil {