This commit is contained in:
meixiongfeng 2023-06-16 18:42:38 +08:00
parent e357ddf671
commit c45017fefe

View File

@ -200,16 +200,12 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall
rsp.Data = curChapter rsp.Data = curChapter
session.SendMsg(string(this.module.GetType()), MlineChallengeOverResp, rsp) // 数据推送 session.SendMsg(string(this.module.GetType()), MlineChallengeOverResp, rsp) // 数据推送
// 主线任务统计 Rtype60 // 主线任务统计 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.Rtype60, 1))
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype61, 1, int32(req.StageId))) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype61, 1, int32(req.StageId)))
var ( var (
ChapterStar int32 ChapterStar int32
bAll3Star bool
allStar int32 allStar int32
) )
bAll3Star = true
for _, v1 := range curChapter.Star { for _, v1 := range curChapter.Star {
star := 0 star := 0
for _, v := range szStar { for _, v := range szStar {
@ -218,16 +214,8 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall
star++ 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 _, v2 := range list {
for _, v1 := range v2.Star { for _, v1 := range v2.Star {
for _, v := range szStar { for _, v := range szStar {