From c45017fefe35da5f267ba55c5329cc0480f8fb1a Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 16 Jun 2023 18:42:38 +0800 Subject: [PATCH] Rtype158 --- modules/mline/api_challengeover.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modules/mline/api_challengeover.go b/modules/mline/api_challengeover.go index 9b907cda6..9a79782ea 100644 --- a/modules/mline/api_challengeover.go +++ b/modules/mline/api_challengeover.go @@ -200,16 +200,12 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall rsp.Data = curChapter session.SendMsg(string(this.module.GetType()), MlineChallengeOverResp, rsp) // 数据推送 // 主线任务统计 Rtype60 - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype60, 1) - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype61, int32(req.StageId)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype60, 1)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype61, 1, int32(req.StageId))) var ( ChapterStar int32 - bAll3Star bool allStar int32 ) - bAll3Star = true for _, v1 := range curChapter.Star { star := 0 for _, v := range szStar { @@ -218,16 +214,8 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall star++ } } - if star != 3 && bAll3Star { - bAll3Star = false - } - } - tasks = append(tasks, comm.GetBuriedParam(comm.Rtype158, curChapter.ChapterId, ChapterStar)) - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype158, curChapter.ChapterId, ChapterStar) - if bAll3Star { - tasks = append(tasks, comm.GetBuriedParam(comm.Rtype159, curChapter.ChapterId)) - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype159, curChapter.ChapterId) } + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype158, ChapterStar, curChapter.ChapterId, curChapter.CType)) for _, v2 := range list { for _, v1 := range v2.Star { for _, v := range szStar {