宝箱日志上报
This commit is contained in:
parent
f74226c056
commit
7aa2b95686
@ -258,6 +258,19 @@ BIReport.PAY_UI_SHOW_TYPE = {
|
|||||||
SHOP_SHOW = "ShopShow",
|
SHOP_SHOW = "ShopShow",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIReport.BOX_OPEN_BOX_TYPE = {
|
||||||
|
SHOP = "Shop",
|
||||||
|
ACTIVITY = "Activity",
|
||||||
|
}
|
||||||
|
|
||||||
|
BIReport.BOX_OPEN_OPEN_TYPE = {
|
||||||
|
USE_KEY = "UseKey",
|
||||||
|
USE_GEM = "UseGem",
|
||||||
|
BOUNTY = "Bounty",
|
||||||
|
ARENA_BOUNTY = "ArenaBounty",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
-- b6
|
-- b6
|
||||||
local EVENT_NAME_EXIT = "client_exit"
|
local EVENT_NAME_EXIT = "client_exit"
|
||||||
local EVENT_NAME_FIGHT = "client_fight"
|
local EVENT_NAME_FIGHT = "client_fight"
|
||||||
@ -287,6 +300,7 @@ local EVENT_NAME_IRONSOURCE_AD_REVENUE = "client_ironsource_ad_revenue" -- applo
|
|||||||
local EVENT_NAME_DAILY_CHALLENGE_OPT = "client_daily_challenge_opt"
|
local EVENT_NAME_DAILY_CHALLENGE_OPT = "client_daily_challenge_opt"
|
||||||
local EVENT_NAME_ARENA_OPT = "client_arena_opt"-- 竞技场
|
local EVENT_NAME_ARENA_OPT = "client_arena_opt"-- 竞技场
|
||||||
local EVENT_NAME_MISCELLANEOUS_OPT = "event_name_miscellaneous_opt" -- 一些杂项
|
local EVENT_NAME_MISCELLANEOUS_OPT = "event_name_miscellaneous_opt" -- 一些杂项
|
||||||
|
local EVENT_BOX_OPEN = "client_box_open"
|
||||||
|
|
||||||
function BIReport:setIsNewPlayer(isNewPlayer)
|
function BIReport:setIsNewPlayer(isNewPlayer)
|
||||||
self.isNewPlayer = isNewPlayer
|
self.isNewPlayer = isNewPlayer
|
||||||
@ -1607,4 +1621,15 @@ function BIReport:postPbAuthfailed(pbName, lastLoginInfo, authFailToLogin)
|
|||||||
self:report(EVENT_NAME_NETWORK_OPT, args)
|
self:report(EVENT_NAME_NETWORK_OPT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BIReport:postBoxOpen(id, boxType, openType, box_level, rewards)
|
||||||
|
local args = {
|
||||||
|
box_type = boxType,
|
||||||
|
open_type = openType,
|
||||||
|
box_item_id = id,
|
||||||
|
box_level = box_level,
|
||||||
|
rewardsStr = GFunc.getItemRewardsStr(rewards)
|
||||||
|
}
|
||||||
|
self:report(EVENT_BOX_OPEN, args)
|
||||||
|
end
|
||||||
|
|
||||||
return BIReport
|
return BIReport
|
||||||
@ -788,6 +788,23 @@ function GFunc.getRewardsStr(rewards)
|
|||||||
return itemStr
|
return itemStr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GFunc.getItemRewardsStr(rewards)
|
||||||
|
if rewards == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local itemStr = ""
|
||||||
|
for k, v in ipairs(rewards) do
|
||||||
|
if v.type == GConst.REWARD_TYPE.ITEM then
|
||||||
|
itemStr = itemStr .. v.item.id .. ":" .. v.item.count
|
||||||
|
end
|
||||||
|
if k ~= #rewards then
|
||||||
|
itemStr = itemStr.. "|"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return itemStr
|
||||||
|
end
|
||||||
|
|
||||||
function GFunc.copyStr(str)
|
function GFunc.copyStr(str)
|
||||||
CS.UnityEngine.GUIUtility.systemCopyBuffer = str
|
CS.UnityEngine.GUIUtility.systemCopyBuffer = str
|
||||||
end
|
end
|
||||||
|
|||||||
@ -40,6 +40,8 @@ function ArenaBountyManager:onClaimReward(result)
|
|||||||
end
|
end
|
||||||
if isSpecialBox then
|
if isSpecialBox then
|
||||||
ModuleManager.ShopManager:showBoxOpenUI({type = GConst.ShopConst.BOX_REWARD_TYPE.ARENA_BOUNTY, params = rewardId, rewards = result.rewards})
|
ModuleManager.ShopManager:showBoxOpenUI({type = GConst.ShopConst.BOX_REWARD_TYPE.ARENA_BOUNTY, params = rewardId, rewards = result.rewards})
|
||||||
|
local openType = BIReport.BOX_OPEN_OPEN_TYPE.ARENA_BOUNTY
|
||||||
|
BIReport:postBoxOpen(rewardId, BIReport.BOX_OPEN_BOX_TYPE.ACTIVITY, openType, 0, result.rewards)
|
||||||
else
|
else
|
||||||
GFunc.showRewardBox(result.rewards)
|
GFunc.showRewardBox(result.rewards)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -40,6 +40,8 @@ function BountyManager:onClaimReward(result)
|
|||||||
end
|
end
|
||||||
if isSpecialBox then
|
if isSpecialBox then
|
||||||
ModuleManager.ShopManager:showBoxOpenUI({type = GConst.ShopConst.BOX_REWARD_TYPE.BOUNTY, params = rewardId, rewards = result.rewards})
|
ModuleManager.ShopManager:showBoxOpenUI({type = GConst.ShopConst.BOX_REWARD_TYPE.BOUNTY, params = rewardId, rewards = result.rewards})
|
||||||
|
local openType = BIReport.BOX_OPEN_OPEN_TYPE.BOUNTY
|
||||||
|
BIReport:postBoxOpen(rewardId, BIReport.BOX_OPEN_BOX_TYPE.ACTIVITY, openType, 0, result.rewards)
|
||||||
else
|
else
|
||||||
GFunc.showRewardBox(result.rewards)
|
GFunc.showRewardBox(result.rewards)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -40,6 +40,13 @@ function SummonManager:summonFinish(result)
|
|||||||
elseif summonType == GConst.SummonConst.SUMMON_TYPE.LV_3 then
|
elseif summonType == GConst.SummonConst.SUMMON_TYPE.LV_3 then
|
||||||
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_OPEN_SHOP_BOX_LEVEL_3, 1)
|
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_OPEN_SHOP_BOX_LEVEL_3, 1)
|
||||||
end
|
end
|
||||||
|
if result.rewards then
|
||||||
|
local openType = BIReport.BOX_OPEN_OPEN_TYPE.USE_KEY
|
||||||
|
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)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if result.summon_info.count then
|
if result.summon_info.count then
|
||||||
local totalCount = 0
|
local totalCount = 0
|
||||||
|
|||||||
@ -70,6 +70,7 @@ function DungeonWeaponMainUI:_bind()
|
|||||||
self:bind(self.weaponData, "isDirty", function()
|
self:bind(self.weaponData, "isDirty", function()
|
||||||
self:refreshFormation()
|
self:refreshFormation()
|
||||||
self:refreshRemianNode()
|
self:refreshRemianNode()
|
||||||
|
self:refreshScrollrect()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self:bind(DataManager.FormationData, "dirty", function()
|
self:bind(DataManager.FormationData, "dirty", function()
|
||||||
@ -91,8 +92,10 @@ function DungeonWeaponMainUI:refreshScrollrect()
|
|||||||
self.scrollRect:addRefreshCallback(function(index, cell)
|
self.scrollRect:addRefreshCallback(function(index, cell)
|
||||||
cell:refresh(self.chapterList[index])
|
cell:refresh(self.chapterList[index])
|
||||||
end)
|
end)
|
||||||
|
self.scrollRect:refillCells(#self.chapterList, nil, self.targetId)
|
||||||
|
else
|
||||||
|
self.scrollRect:refreshAll()
|
||||||
end
|
end
|
||||||
self.scrollRect:refillCells(#self.chapterList, nil, self.targetId)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function DungeonWeaponMainUI:refreshFormation()
|
function DungeonWeaponMainUI:refreshFormation()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user