上传世界任务战斗失败埋点触发

This commit is contained in:
liwei1dao 2023-08-16 16:28:06 +08:00
parent d4f1df7e77
commit 549b9a25dc
2 changed files with 18 additions and 4 deletions

View File

@ -844,6 +844,19 @@ const (
Rtype212 TaskType = 212 // 接取任务后,商队抵达指定城市
Rtype213 TaskType = 213 // 消耗X体力
Rtype214 TaskType = 214 // 获得x充值积分
Rtype215 TaskType = 215 // 首次触发指定ID的事件
Rtype216 TaskType = 216 // 上阵英雄都为指定职业,击败石阵秘境中指定关卡的首领
Rtype217 TaskType = 217 // 携带指定ID的buff击败石阵秘境中指定关卡的首领
Rtype218 TaskType = 218 // 携带指定类型、≥指定数量的buff击败石阵秘境中指定关卡的首领
Rtype219 TaskType = 219 // 累计击败石阵秘境任意关卡的首领N次
Rtype220 TaskType = 220 // 在石阵秘境的强化商店中强化N次buff事件类型29
Rtype221 TaskType = 221 // 累计获得N个指定类型的buff
Rtype222 TaskType = 222 // 击败指定关卡的首领时,背包中指定道具数量≥指定数量
Rtype223 TaskType = 223 // 触发指定类型的事件累计N次
Rtype224 TaskType = 224 // 击败石阵秘境中指定关卡的首领时,每名上阵英雄血量≤比例(千分比)
Rtype225 TaskType = 225 // 在石阵秘境中挑战指定类型的战斗关卡普通14首领28失败N次
Rtype226 TaskType = 226 // 击败石阵秘境中指定关卡的首领时,背包中指定道具数量=指定数量
Rtype227 TaskType = 227 // 指定ID战斗失败
)
const (
MailLineEasy int32 = 1 // 简单

View File

@ -67,10 +67,11 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.WTaskBattle
go this.module.ModuleBuried.TriggerBuried(session.Clone(), comm.GetBuriedParam(comm.Rtype70, 1, req.BattleConfId))
}
} else {
this.module.Error("世界任务战斗失败",
log.Field{Key: "uid", Value: session.GetUserId()},
log.Field{Key: "isWin", Value: isWin},
)
go this.module.ModuleBuried.TriggerBuried(session.Clone(), comm.GetBuriedParam(comm.Rtype227, 1, req.BattleConfId))
// this.module.Error("世界任务战斗失败",
// log.Field{Key: "uid", Value: session.GetUserId()},
// log.Field{Key: "isWin", Value: isWin},
// )
}
session.SendMsg(string(this.module.GetType()), "battlefinish", &pb.WTaskBattleFinishResp{BattleConfId: req.BattleConfId})
return