新增上报

This commit is contained in:
xiekaidong 2023-06-07 17:33:54 +08:00
parent 22ca62a023
commit c46b80a567
2 changed files with 12 additions and 1 deletions

View File

@ -158,6 +158,7 @@ BIReport.COIN_TYPE = {
BIReport.MAIL_OPT_TYPE = {
OPEN = "Open",
CLAIM = "Claim",
CLICK = "Click",
}
BIReport.BOUNTY_OPT_TYPE = {
@ -820,6 +821,15 @@ function BIReport:postMailClaim(mailId)
self:report(EVENT_NAME_MAIL_OPT, args)
end
function BIReport:postMailClick(mailId)
-- Email_ID 邮件编号
local args = {
mail_id = mailId,
event_type = BIReport.MAIL_OPT_TYPE.CLICK,
}
self:report(EVENT_NAME_MAIL_OPT, args)
end
function BIReport:postAccountDelete(loginType)
local args = {
login_type = loginType,
@ -898,7 +908,7 @@ function BIReport:postBountyLevelUp(bountyType, level, exp, season)
local args = {
event_type = BIReport.BOUNTY_OPT_TYPE.BOUNTY_LEVEL_UP,
season = season,
level = level,
bounty_level_id = level,
exp = exp,
bounty_type = bountyType,
}

View File

@ -53,6 +53,7 @@ function MailCell:refresh(entity)
end
end)
uiMap["mail_cell.bg_read.claim_btn"]:addClickListener(function()
BIReport:postMailClick(entity:getId())
ModuleManager.MailManager:readMail(entity:getId())
end)