From f61cd15f0239409887cacebe8b876e922e147113 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Fri, 28 Jul 2023 16:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=BB=E7=BA=BF=20?= =?UTF-8?q?=E7=AB=A0=E8=8A=82=E5=A5=96=E5=8A=B1bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/worldtask/api_chapterreward.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/worldtask/api_chapterreward.go b/modules/worldtask/api_chapterreward.go index 6c2200d42..244ec1de2 100644 --- a/modules/worldtask/api_chapterreward.go +++ b/modules/worldtask/api_chapterreward.go @@ -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)