上传代码
This commit is contained in:
parent
3de933fc60
commit
e71e47992d
@ -116,7 +116,11 @@ func (this *Mainline) BingoJumpLevel(session comm.IUserSession, level int32) (er
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
info.Level = make(map[int32]int32)
|
||||||
|
info.Lastlevel = make(map[int32]int32)
|
||||||
|
info.Chapteraward = make(map[int32]*pb.DBMainlineAward)
|
||||||
|
info.Exploreaward = make(map[int32]*pb.DBMainlineAward)
|
||||||
|
info.Groupaward = make(map[int32]*pb.DBMainlineAward)
|
||||||
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
|
||||||
|
@ -64,6 +64,7 @@ func (this *ModelWTask) updateUserWTasks(uid string, data *pb.DBWTask) (err erro
|
|||||||
"boxs": data.Boxs,
|
"boxs": data.Boxs,
|
||||||
"dailytaskgroup": data.Dailytaskgroup,
|
"dailytaskgroup": data.Dailytaskgroup,
|
||||||
"exchange": data.Exchange,
|
"exchange": data.Exchange,
|
||||||
|
"events": data.Events,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()})
|
this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()})
|
||||||
return
|
return
|
||||||
|
@ -348,6 +348,8 @@ func (this *WTask) ResetDailytaskTask(session comm.IUserSession, dailytaskid int
|
|||||||
wtask.Accepts = accepts
|
wtask.Accepts = accepts
|
||||||
wtask.Completes = completes
|
wtask.Completes = completes
|
||||||
wtask.Dailytaskgroup = dailytaskid
|
wtask.Dailytaskgroup = dailytaskid
|
||||||
|
wtask.Exchange = make(map[int32]int32)
|
||||||
|
wtask.Events = make(map[int32]int32)
|
||||||
if len(condiIds) > 0 {
|
if len(condiIds) > 0 {
|
||||||
if err = this.ModuleBuried.ActiveCondition(session.GetUserId(), condiIds...); err != nil {
|
if err = this.ModuleBuried.ActiveCondition(session.GetUserId(), condiIds...); err != nil {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
|
Loading…
Reference in New Issue
Block a user