战令修改
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) {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user