Merge branch 'bs_2.0.6.28' of http://git.legu.cc/liwei_3d/go_dreamfactory into bs_2.0.6.28
This commit is contained in:
commit
5f64bd6050
@ -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