埋点236

This commit is contained in:
meixiongfeng 2023-10-11 15:12:21 +08:00
parent 5066b59911
commit 1b7e6368a4
2 changed files with 7 additions and 0 deletions

View File

@ -905,6 +905,7 @@ const (
Rtype232 TaskType = 232 // 种族塔通关x阵营x层
Rtype234 TaskType = 234 // 完成多次捕羊大赛
Rtype235 TaskType = 235 // 指定X龙的等级达到Y级
Rtype236 TaskType = 236 // 购买X章的商店物品数量达到Y件
)
const (
MailLineEasy int32 = 1 // 简单

View File

@ -26,6 +26,7 @@ func (this *apiComp) ShopBuy(session comm.IUserSession, req *pb.MainlineShopBuyR
shopConf *cfg.GameMainShopItemData
bUnlock bool
atno []*pb.UserAtno
tasks []*pb.BuriedParam = make([]*pb.BuriedParam, 0)
)
bUnlock = true
errdata = this.ShopBuyCheck(session, req)
@ -87,5 +88,10 @@ func (this *apiComp) ShopBuy(session comm.IUserSession, req *pb.MainlineShopBuyR
Info: info,
Item: atno,
})
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype236, shopConf.Shopid, 1))
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
this.module.ModuleBuried.TriggerBuried(session, tasks...)
})
return
}