上传主线跳关奖励发放
This commit is contained in:
parent
546e17f7b5
commit
1111ef6ba6
@ -103,9 +103,10 @@ func (this *Mainline) CheckPoint(uid string) bool {
|
|||||||
// 跳转主线管卡
|
// 跳转主线管卡
|
||||||
func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (errdata *pb.ErrorData) {
|
func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (errdata *pb.ErrorData) {
|
||||||
var (
|
var (
|
||||||
info *pb.DBMainline
|
info *pb.DBMainline
|
||||||
confs []*cfg.GameMainStageData
|
confs []*cfg.GameMainStageData
|
||||||
err error
|
aeward []*cfg.Gameatn = make([]*cfg.Gameatn, 0)
|
||||||
|
err error
|
||||||
)
|
)
|
||||||
|
|
||||||
if confs, err = this.configure.GetMainStageConfs(); err != nil {
|
if confs, err = this.configure.GetMainStageConfs(); err != nil {
|
||||||
@ -133,6 +134,7 @@ func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (er
|
|||||||
for _, v := range confs {
|
for _, v := range confs {
|
||||||
if v.Id <= level {
|
if v.Id <= level {
|
||||||
info.Level[v.Id] = 7
|
info.Level[v.Id] = 7
|
||||||
|
aeward = append(aeward, v.Firstaward...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.modelMline.updateprogress(info)
|
this.modelMline.updateprogress(info)
|
||||||
@ -144,6 +146,7 @@ func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (er
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
errdata, _ = this.DispenseAtno(session, aeward, true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user