明月度任务刷新
This commit is contained in:
parent
33728ccc1f
commit
6094c6ffed
@ -56,7 +56,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MoonlvAwardReq) (e
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, err := this.module.configure.GetMoonLvConf(list.Lv + 1); err == nil { // 查看能不能继续升级
|
if upConf, err := this.module.configure.GetMoonLvConf(list.Lv + 1); err == nil { // 查看能不能继续升级
|
||||||
list.Lv += 1
|
list.Lv += 1
|
||||||
update["lv"] = list.Lv
|
update["lv"] = list.Lv
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MoonlvAwardReq) (e
|
|||||||
// 重置任务
|
// 重置任务
|
||||||
var szTaskid []int32
|
var szTaskid []int32
|
||||||
|
|
||||||
if conf, err := this.module.configure.GetMoonLvTaskConf(lvConf.TaskGroupId); err == nil {
|
if conf, err := this.module.configure.GetMoonLvTaskConf(upConf.TaskGroupId); err == nil {
|
||||||
for _, v := range conf {
|
for _, v := range conf {
|
||||||
szTaskid = append(szTaskid, v.TaskId) // 获取任务id
|
szTaskid = append(szTaskid, v.TaskId) // 获取任务id
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user