明月度任务刷新

This commit is contained in:
meixiongfeng 2023-11-30 17:17:05 +08:00
parent 33728ccc1f
commit 6094c6ffed

View File

@ -56,7 +56,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MoonlvAwardReq) (e
}
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
update["lv"] = list.Lv
@ -68,7 +68,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MoonlvAwardReq) (e
// 重置任务
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 {
szTaskid = append(szTaskid, v.TaskId) // 获取任务id
}