From f95926cfde52842a842035c9b2a09fe1415b10cc Mon Sep 17 00:00:00 2001 From: CloudJ Date: Tue, 6 Jun 2023 17:11:16 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E5=88=86=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 | 10 ++++ lua/app/ui/main_city/main_city_ui.lua | 4 ++ lua/app/ui/shop/first_recharge_pop_ui.lua | 3 ++ lua/app/ui/shop/gift_pop_ui.lua | 3 ++ lua/app/ui/shop/shop_comp.lua | 57 ++++++++++++++++++++++- lua/app/userdata/shop/shop_data.lua | 3 +- 6 files changed, 77 insertions(+), 3 deletions(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index e09d14cd..237116c4 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -179,6 +179,7 @@ local EVENT_NAME_VIT_USE = "client_vit_use" local EVENT_NAME_VIT_GET = "client_vit_get" local EVENT_NAME_DAILY_TASK = "client_daily_task" local EVENT_NAME_MAIL_OPT = "client_mail_opt" +local EVENT_NAME_PAY_UI_SHOW = "client_pay_ui_show" -- 内购相关界面展示 function BIReport:setIsNewPlayer(isNewPlayer) self.isNewPlayer = isNewPlayer @@ -824,4 +825,13 @@ function BIReport:postAccountChangeFinish(loginType, success) self:report(EVENT_NAME_ACCOUNT_OPT, args) end +-- 内购相关界面展示,包括弹出/主动打开 +function BIReport:postPayUIShow(giftType, giftId) + local args = { + gift_type = giftType, + gift_id = giftId, + } + self:report(EVENT_NAME_PAY_UI_SHOW, args) +end + return BIReport \ No newline at end of file diff --git a/lua/app/ui/main_city/main_city_ui.lua b/lua/app/ui/main_city/main_city_ui.lua index 08bdc01e..170d402e 100644 --- a/lua/app/ui/main_city/main_city_ui.lua +++ b/lua/app/ui/main_city/main_city_ui.lua @@ -694,7 +694,11 @@ function MainCityUI:switchComp(index) for i, comp in pairs(self.subComps) do comp:getBaseObject():setActive(i == index) if i == index then + if index == GConst.MainCityConst.BOTTOM_PAGE.SHOP then + comp:clearPostFlag() + end comp:refresh() + self:updateTime() end end diff --git a/lua/app/ui/shop/first_recharge_pop_ui.lua b/lua/app/ui/shop/first_recharge_pop_ui.lua index d4b21310..91c9cfbc 100644 --- a/lua/app/ui/shop/first_recharge_pop_ui.lua +++ b/lua/app/ui/shop/first_recharge_pop_ui.lua @@ -43,6 +43,9 @@ function FirstRechargePopUI:onLoadRootComplete() self:_bind() self:refresh() + + -- 上报 + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, GConst.ShopConst.FIRST_RECHARGE_ID) end function FirstRechargePopUI:_bind() diff --git a/lua/app/ui/shop/gift_pop_ui.lua b/lua/app/ui/shop/gift_pop_ui.lua index f6ef6b59..98a376cd 100644 --- a/lua/app/ui/shop/gift_pop_ui.lua +++ b/lua/app/ui/shop/gift_pop_ui.lua @@ -154,6 +154,9 @@ function GiftPopUI:refresh(needCheck) end end end + + -- 上报 + BIReport:postPayUIShow(self.actType, self.actId) self:updateTime() end diff --git a/lua/app/ui/shop/shop_comp.lua b/lua/app/ui/shop/shop_comp.lua index 989a77c6..8335c51d 100644 --- a/lua/app/ui/shop/shop_comp.lua +++ b/lua/app/ui/shop/shop_comp.lua @@ -21,6 +21,7 @@ function ShopComp:init() self.uiMap = self.baseObject:genAllChildren() self.page = PAGE_MAIN -- 默认展示主要商品 + self.post = false self:initTitlePage() self:initMainPage() @@ -81,6 +82,7 @@ end function ShopComp:switchPage(page) if self.page ~= page then self.page = page + self.post = false self:refresh() end end @@ -168,6 +170,59 @@ function ShopComp:refresh() end self:refreshTime() + + -- 上报 + self:postEnterPage() +end + +function ShopComp:postEnterPage() + if self.post then + return + end + self.post = true + + if self.page == PAGE_DISCOUNT then + -- 找到所有的项目 + -- 章节 + local actIdList = DataManager.ShopData:getActChapterStoreCanBuyActIds() + if actIdList and #actIdList > 0 then + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.CHAPTER_GIFT, actIdList[1]) -- 约定上报第一个付费项 + end + -- 新手 + if not DataManager.ShopData:getBeginnerGiftHasBuy() then + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, GConst.ShopConst.BEGINNER_GIFT_ID) + end + -- 助力 + local actIdList = DataManager.ShopData:getLevelUpGiftActIds() + if actIdList and #actIdList > 0 then + for _, id in ipairs(actIdList) do + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, id) + end + end + -- 成长 + local actIdList = DataManager.ShopData:getValidGrowUpGifts() + if actIdList and #actIdList > 0 then + for _, id in ipairs(actIdList) do + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.GROW_UP_GIFT, id) + end + end + -- 金币 + local actId = DataManager.ShopData:getValidCoinGiftId() + if actId and actId > 0 then + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, actId) + end + else + -- 找到所有的钻石项目 + -- local gemCfg = DataManager.ShopData:getMallTreasureConfig() + -- for _, id in pairs(gemCfg) do + -- BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.MALL_TREASURE, id) + -- end + BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.MALL_TREASURE, 2) -- 约定上报第一个付费项 + end +end + +function ShopComp:clearPostFlag() + self.post = false end function ShopComp:refreshTime() @@ -181,7 +236,7 @@ function ShopComp:refreshTime() end if self.coinCellCount ~= coinCellCount then self.coinCellCount = coinCellCount - DataManager.ShopData:setDirty() + DataManager.ShopData:setDirty() end local growCellCount = 0 if self.growSellCell and self.growSellCell:getIsOpen() then diff --git a/lua/app/userdata/shop/shop_data.lua b/lua/app/userdata/shop/shop_data.lua index 1fab764a..910545b7 100644 --- a/lua/app/userdata/shop/shop_data.lua +++ b/lua/app/userdata/shop/shop_data.lua @@ -6,7 +6,6 @@ end function ShopData:initBase() self:initActChapterStoreData() - self:initFirstRecharge() self:initCrossDay() end @@ -52,7 +51,7 @@ function ShopData:initActGift(act) end self.giftMap[giftType][giftId] = gift end - + self:initFirstRecharge() self:setDirty() end From e59e40435df18adcc243d57548aa05190d7a17cf Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:13:44 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 9 +++++++++ lua/app/module/player/player_manager.lua | 1 + 2 files changed, 10 insertions(+) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index d6346202..3d48d4e5 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -179,6 +179,7 @@ local EVENT_NAME_VIT_USE = "client_vit_use" local EVENT_NAME_VIT_GET = "client_vit_get" local EVENT_NAME_DAILY_TASK = "client_daily_task" local EVENT_NAME_MAIL_OPT = "client_mail_opt" +local EVENT_NAME_PLAYER_LV_UP = "client_player_lv_up" -- 玩家升级 function BIReport:setIsNewPlayer(isNewPlayer) self.isNewPlayer = isNewPlayer @@ -825,4 +826,12 @@ function BIReport:postAccountChangeFinish(loginType, success) self:report(EVENT_NAME_ACCOUNT_OPT, args) end +function BIReport:postPlayerLvUp(fromLevel, toLevel) + local args = { + player_level_from = fromLevel, + player_level = toLevel, + } + self:report(EVENT_NAME_PLAYER_LV_UP, args) +end + return BIReport \ No newline at end of file diff --git a/lua/app/module/player/player_manager.lua b/lua/app/module/player/player_manager.lua index e1303cfd..b477c407 100644 --- a/lua/app/module/player/player_manager.lua +++ b/lua/app/module/player/player_manager.lua @@ -21,6 +21,7 @@ function PlayerManager:onLevelUpFinish(result) self:showPlayerUpUI(currLv, result.rewards) ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_PLAYER_LV_REACH, diffLv) DataManager:tryOpenModules() + BIReport:postPlayerLvUp(currLv, result.level) end end end From a9d40c0c64a95d7f80994974831e4c0362914342 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:21:57 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=96=B0=E5=8F=B7=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/player/player_data.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/app/userdata/player/player_data.lua b/lua/app/userdata/player/player_data.lua index 2dcaffeb..9e531043 100644 --- a/lua/app/userdata/player/player_data.lua +++ b/lua/app/userdata/player/player_data.lua @@ -25,6 +25,11 @@ function PlayerData:init(data) self:markDirty() end) self.createTime = basicInfo.create_at or 0 -- 创角时间 + + local time = data.now_ts or 0 + if self.data.level == 1 and self.data.exp == 0 and math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录 + BIReport:postVitGet(60, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, 60) + end self:initModuleUnlockInfo() end From be52bb20b62087fee8e726623b563a0154cb6872 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:25:45 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=96=B0=E5=8F=B7=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E4=BD=93=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/player/player_data.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/app/userdata/player/player_data.lua b/lua/app/userdata/player/player_data.lua index 9e531043..bd6c5db4 100644 --- a/lua/app/userdata/player/player_data.lua +++ b/lua/app/userdata/player/player_data.lua @@ -27,8 +27,9 @@ function PlayerData:init(data) self.createTime = basicInfo.create_at or 0 -- 创角时间 local time = data.now_ts or 0 - if self.data.level == 1 and self.data.exp == 0 and math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录 - BIReport:postVitGet(60, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, 60) + if math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录 + local vit = self:getMaxVit() + BIReport:postVitGet(vit, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, vit) end self:initModuleUnlockInfo() end From be6d42fe884cabdfe0b67a69d271af692fae60e9 Mon Sep 17 00:00:00 2001 From: Fang Date: Tue, 6 Jun 2023 17:30:42 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=88=98=E6=96=97=E9=80=80=E5=87=BA?= =?UTF-8?q?=E5=90=8E=E6=98=BE=E7=A4=BA=E4=B8=BB=E7=95=8C=E9=9D=A2=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daily_challenge/daily_challenge_manager.lua | 5 +---- lua/app/module/maincity/maincity_manager.lua | 12 ++++++++++++ lua/app/ui/main_city/component/main_comp.lua | 3 ++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/lua/app/module/daily_challenge/daily_challenge_manager.lua b/lua/app/module/daily_challenge/daily_challenge_manager.lua index 8507c751..8c6ee2e1 100644 --- a/lua/app/module/daily_challenge/daily_challenge_manager.lua +++ b/lua/app/module/daily_challenge/daily_challenge_manager.lua @@ -71,10 +71,7 @@ function DailyChallengeManager:rspStartChallenge(result) if result.err_code == GConst.ERROR_STR.SUCCESS then DataManager.DailyChallengeData:onFightCountReduce() DataManager.DailyChallengeData:setFixedChapterId(result.today_fixed_chapter_id) - ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.DAILY_CHALLENGE, {}, function() - UIManager:closeAllUI() - ModuleManager.MaincityManager:showMainCityUI(false, GConst.MainCityConst.MAIN_MODULE.DAILY_CHALLENGE) - end) + ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.DAILY_CHALLENGE) end end diff --git a/lua/app/module/maincity/maincity_manager.lua b/lua/app/module/maincity/maincity_manager.lua index 1873819a..2e06fb85 100644 --- a/lua/app/module/maincity/maincity_manager.lua +++ b/lua/app/module/maincity/maincity_manager.lua @@ -98,4 +98,16 @@ function MaincityManager:isActivSideBarModule(moduleKey) return mainUI:isActivSideBarModule(moduleKey) end +function MaincityManager:setCurModule(moduleKey) + self.curModule = moduleKey +end + +function MaincityManager:getCurModule() + if not self.curModule then + -- 默认进主线章节 + return GConst.MainCityConst.MAIN_MODULE.CHAPTER + end + return self.curModule +end + return MaincityManager \ No newline at end of file diff --git a/lua/app/ui/main_city/component/main_comp.lua b/lua/app/ui/main_city/component/main_comp.lua index 9b4c8cab..843351c0 100644 --- a/lua/app/ui/main_city/component/main_comp.lua +++ b/lua/app/ui/main_city/component/main_comp.lua @@ -7,7 +7,7 @@ local BOTTOM_HEIGHT = 120 function MainComp:init() self.uiMap = self:getBaseObject():genAllChildren() - self:refreshModule(GConst.MainCityConst.MAIN_MODULE.CHAPTER) + self:refreshModule(ModuleManager.MaincityManager:getCurModule()) self:initStageFormation() end @@ -29,6 +29,7 @@ function MainComp:refreshModule(selectModule) if self.curModuleType ~= selectModule then self.curModuleType = selectModule + ModuleManager.MaincityManager:setCurModule(self.curModuleType) if self.curModuleType == GConst.MainCityConst.MAIN_MODULE.CHAPTER then -- 切换到主线章节 EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_CHAPTER) From 9c94d29418499d0f1bdb4c8288137c8eada78b3a Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:41:29 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E5=87=A0=E4=B8=AA=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/activity/gold_pig/gold_pig_ui.lua | 2 ++ lua/app/ui/bounty/bounty_main_ui.lua | 2 ++ lua/app/ui/fund/growth_fund_ui.lua | 1 + 3 files changed, 5 insertions(+) diff --git a/lua/app/ui/activity/gold_pig/gold_pig_ui.lua b/lua/app/ui/activity/gold_pig/gold_pig_ui.lua index 3ad0cbf9..1beda6db 100644 --- a/lua/app/ui/activity/gold_pig/gold_pig_ui.lua +++ b/lua/app/ui/activity/gold_pig/gold_pig_ui.lua @@ -71,6 +71,8 @@ function GoldPigUI:onLoadRootComplete() end end end) + + BIReport:postPayUIShow(BIReport.GIFT_TYPE.GOLD_PIG) end function GoldPigUI:initSpine() diff --git a/lua/app/ui/bounty/bounty_main_ui.lua b/lua/app/ui/bounty/bounty_main_ui.lua index 6f8a098d..f67a0f02 100644 --- a/lua/app/ui/bounty/bounty_main_ui.lua +++ b/lua/app/ui/bounty/bounty_main_ui.lua @@ -58,6 +58,8 @@ function BountyMainUI:onLoadRootComplete() self:updateTime() end, 1) self:updateTime() + + BIReport:postPayUIShow(BIReport.GIFT_TYPE.BOUNTY) end function BountyMainUI:initTitle() diff --git a/lua/app/ui/fund/growth_fund_ui.lua b/lua/app/ui/fund/growth_fund_ui.lua index 16738514..fddf0f87 100644 --- a/lua/app/ui/fund/growth_fund_ui.lua +++ b/lua/app/ui/fund/growth_fund_ui.lua @@ -65,6 +65,7 @@ function GrowthFundUI:onLoadRootComplete() self:initPayBtns() self:initRewards() self:bindData() + BIReport:postPayUIShow(BIReport.GIFT_TYPE.GROWTH_FUND) end function GrowthFundUI:initTitle() From 0d2144756d9b017f7ad830b5c4cd128ca3793b87 Mon Sep 17 00:00:00 2001 From: CloudJ Date: Tue, 6 Jun 2023 17:51:18 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E5=8F=82=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/ui/shop/first_recharge_pop_ui.lua | 2 +- lua/app/ui/shop/gift_pop_ui.lua | 3 ++- lua/app/ui/shop/shop_comp.lua | 16 ++++++---------- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 96e09b29..b27756aa 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -835,7 +835,8 @@ function BIReport:postPlayerLvUp(fromLevel, toLevel) self:report(EVENT_NAME_PLAYER_LV_UP, args) end --- 内购相关界面展示,包括弹出/主动打开 +-- 内购相关界面展示,包括弹出/主动打开(如果是打开商城页签,钻石礼包只上报id2,章节礼包只上报首个可购买章节id) +-- giftType为BIReport.GIFT_TYPE function BIReport:postPayUIShow(giftType, giftId) local args = { gift_type = giftType, diff --git a/lua/app/ui/shop/first_recharge_pop_ui.lua b/lua/app/ui/shop/first_recharge_pop_ui.lua index 91c9cfbc..94de9067 100644 --- a/lua/app/ui/shop/first_recharge_pop_ui.lua +++ b/lua/app/ui/shop/first_recharge_pop_ui.lua @@ -45,7 +45,7 @@ function FirstRechargePopUI:onLoadRootComplete() self:refresh() -- 上报 - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, GConst.ShopConst.FIRST_RECHARGE_ID) + BIReport:postPayUIShow(BIReport.GIFT_TYPE.FIRST_RECHARGE, GConst.ShopConst.FIRST_RECHARGE_ID) end function FirstRechargePopUI:_bind() diff --git a/lua/app/ui/shop/gift_pop_ui.lua b/lua/app/ui/shop/gift_pop_ui.lua index 98a376cd..059d813f 100644 --- a/lua/app/ui/shop/gift_pop_ui.lua +++ b/lua/app/ui/shop/gift_pop_ui.lua @@ -156,7 +156,8 @@ function GiftPopUI:refresh(needCheck) end -- 上报 - BIReport:postPayUIShow(self.actType, self.actId) + local giftType = PayManager:getGiftType(self.actType, self.actId) + BIReport:postPayUIShow(giftType, self.actId) self:updateTime() end diff --git a/lua/app/ui/shop/shop_comp.lua b/lua/app/ui/shop/shop_comp.lua index 8335c51d..51301b1c 100644 --- a/lua/app/ui/shop/shop_comp.lua +++ b/lua/app/ui/shop/shop_comp.lua @@ -186,38 +186,34 @@ function ShopComp:postEnterPage() -- 章节 local actIdList = DataManager.ShopData:getActChapterStoreCanBuyActIds() if actIdList and #actIdList > 0 then - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.CHAPTER_GIFT, actIdList[1]) -- 约定上报第一个付费项 + BIReport:postPayUIShow(BIReport.GIFT_TYPE.ACT_CHAPTER_STORE, actIdList[1]) -- 约定上报第一个付费项 end -- 新手 if not DataManager.ShopData:getBeginnerGiftHasBuy() then - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, GConst.ShopConst.BEGINNER_GIFT_ID) + BIReport:postPayUIShow(BIReport.GIFT_TYPE.BEGINNER_GIFT, GConst.ShopConst.BEGINNER_GIFT_ID) end -- 助力 local actIdList = DataManager.ShopData:getLevelUpGiftActIds() if actIdList and #actIdList > 0 then for _, id in ipairs(actIdList) do - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, id) + BIReport:postPayUIShow(BIReport.GIFT_TYPE.LEVEL_UP_GIFT, id) end end -- 成长 local actIdList = DataManager.ShopData:getValidGrowUpGifts() if actIdList and #actIdList > 0 then for _, id in ipairs(actIdList) do - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.GROW_UP_GIFT, id) + BIReport:postPayUIShow(BIReport.GIFT_TYPE.GROW_UP_GIFT, id) end end -- 金币 local actId = DataManager.ShopData:getValidCoinGiftId() if actId and actId > 0 then - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.ACT_GIFT, actId) + BIReport:postPayUIShow(BIReport.GIFT_TYPE.COIN_GIFT, actId) end else -- 找到所有的钻石项目 - -- local gemCfg = DataManager.ShopData:getMallTreasureConfig() - -- for _, id in pairs(gemCfg) do - -- BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.MALL_TREASURE, id) - -- end - BIReport:postPayUIShow(PayManager.PURCHARSE_TYPE.MALL_TREASURE, 2) -- 约定上报第一个付费项 + BIReport:postPayUIShow(BIReport.GIFT_TYPE.MALL_TREASURE, 2) -- 约定上报第一个付费项 end end