From c46b80a567e93dbb1c6f7d41e91c11ec081d888b Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 7 Jun 2023 17:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 12 +++++++++++- lua/app/ui/mail/cell/mail_cell.lua | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 7eb3c61c..8536f33d 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -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, } diff --git a/lua/app/ui/mail/cell/mail_cell.lua b/lua/app/ui/mail/cell/mail_cell.lua index 481fc7b6..c4287215 100644 --- a/lua/app/ui/mail/cell/mail_cell.lua +++ b/lua/app/ui/mail/cell/mail_cell.lua @@ -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)