From 33670d3129c671640f42aaec30269030da6e4a4a Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 29 Jan 2024 10:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86boss=20=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 1 + modules/integral/api_challengeover.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/comm/const.go b/comm/const.go index 69580943f..b278b56f2 100644 --- a/comm/const.go +++ b/comm/const.go @@ -1014,6 +1014,7 @@ const ( Rtype251 TaskType = 251 //在{0}回合内完成狩猎内{1}key值 Rtype252 TaskType = 252 //完成指定世界任务 Rtype253 TaskType = 253 //退出公会 + Rtype254 TaskType = 254 //通关积分BOSS难度{0} ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/integral/api_challengeover.go b/modules/integral/api_challengeover.go index 28a08f53e..2f9f89da9 100644 --- a/modules/integral/api_challengeover.go +++ b/modules/integral/api_challengeover.go @@ -163,5 +163,12 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.IntegralCh Heroexp: changExp, }) + // 任务埋点 + var tasks []*pb.BuriedParam + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype254, req.Nandu)) + go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { + + this.module.ModuleBuried.TriggerBuried(session, tasks...) + }) return }