上传主线 章节奖励bug修复
This commit is contained in:
parent
304ea2c0cc
commit
f61cd15f02
@ -70,6 +70,17 @@ func (this *apiComp) Chapterreward(session comm.IUserSession, req *pb.WorldtaskC
|
||||
}
|
||||
return
|
||||
}
|
||||
myWorldtask.Chapters[req.GroupId] = 2
|
||||
|
||||
if err := this.module.modelWorldtask.Change(uid, map[string]interface{}{
|
||||
"chapters": myWorldtask.Chapters,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
this.module.DispenseRes(session, rewardCnf.Reword, true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user