From 6ce2886143138f691be5a0f439d3c47265e75731 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 19 Sep 2023 16:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E6=8A=BD=E5=8D=A1=E6=AC=A1?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 3 ++- lua/app/module/summon/summon_manager.lua | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 9b0a35ba..13705124 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -1754,12 +1754,13 @@ function BIReport:postPbAuthfailed(pbName, lastLoginInfo, authFailToLogin) self:report(EVENT_NAME_NETWORK_OPT, args) end -function BIReport:postBoxOpen(id, boxType, openType, box_level, rewards) +function BIReport:postBoxOpen(id, boxType, openType, box_level, rewards, box_count) local args = { box_type = boxType, open_type = openType, box_item_id = id, box_level = box_level, + box_count = box_count, rewards_str = GFunc.getItemRewardsStr(rewards) } self:report(EVENT_BOX_OPEN, args) diff --git a/lua/app/module/summon/summon_manager.lua b/lua/app/module/summon/summon_manager.lua index 8f2da97b..0c26bfe1 100644 --- a/lua/app/module/summon/summon_manager.lua +++ b/lua/app/module/summon/summon_manager.lua @@ -45,7 +45,11 @@ function SummonManager:summonFinish(result) if result.reqData.consume_type ~= 1 then -- 钻石 openType = BIReport.BOX_OPEN_OPEN_TYPE.USE_GEM end - BIReport:postBoxOpen(summonType, BIReport.BOX_OPEN_BOX_TYPE.SHOP, openType, DataManager.SummonData:getSummonLevel(), result.rewards) + local count = 0 + if result.summon_info and result.summon_info.count[summonType] then + count = result.summon_info.count[summonType] + end + BIReport:postBoxOpen(summonType, BIReport.BOX_OPEN_BOX_TYPE.SHOP, openType, DataManager.SummonData:getSummonLevel(), result.rewards, count) end end if result.summon_info.count then