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:
meixiongfeng 2023-08-02 11:46:51 +08:00
commit 5f64bd6050

View File

@ -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)