战令修改
This commit is contained in:
parent
0cba2d618c
commit
99f20cc81b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user