Rtype158
This commit is contained in:
parent
e357ddf671
commit
c45017fefe
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user