调整一下bi打印逻辑
This commit is contained in:
parent
783ade4a69
commit
442f75efab
@ -135,10 +135,6 @@ function BIReport:clearAccountId()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BIReport:report(name, args)
|
function BIReport:report(name, args)
|
||||||
-- 内网dev包和编辑器模式不上报
|
|
||||||
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
-- 审核模式不上报
|
-- 审核模式不上报
|
||||||
if CS.BF.BFMain.IsShenhe then
|
if CS.BF.BFMain.IsShenhe then
|
||||||
return
|
return
|
||||||
@ -164,9 +160,17 @@ function BIReport:report(name, args)
|
|||||||
args.current_version = CS.BF.BFMain.Instance.GameLaunchMgr:GetCurrentVersion()
|
args.current_version = CS.BF.BFMain.Instance.GameLaunchMgr:GetCurrentVersion()
|
||||||
args.is_new_player = self.isNewPlayer
|
args.is_new_player = self.isNewPlayer
|
||||||
args.device_unique_identifier = CS.UnityEngine.SystemInfo.deviceUniqueIdentifier
|
args.device_unique_identifier = CS.UnityEngine.SystemInfo.deviceUniqueIdentifier
|
||||||
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name, json.encode(args))
|
|
||||||
self:printArgsStr(name, args)
|
self:printArgsStr(name, args)
|
||||||
|
-- 内网dev包和编辑器模式不上报
|
||||||
|
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name, json.encode(args))
|
||||||
else
|
else
|
||||||
|
-- 内网dev包和编辑器模式不上报
|
||||||
|
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
|
||||||
|
return
|
||||||
|
end
|
||||||
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name)
|
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -317,7 +321,6 @@ function BIReport:postFightBegin(battleType, wave, chapterId, maxChapter, startT
|
|||||||
start_times = startTimes,
|
start_times = startTimes,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_FIGHT, args)
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
self:printArgsStr(EVENT_NAME_FIGHT, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BIReport:postFightEnd(battleType, chapterId, wave, duration, totalTime, eliminateCount, chapterEliminateCount, type, deathType, startTimes, isFirstWin, isFianlStep)
|
function BIReport:postFightEnd(battleType, chapterId, wave, duration, totalTime, eliminateCount, chapterEliminateCount, type, deathType, startTimes, isFirstWin, isFianlStep)
|
||||||
@ -355,7 +358,6 @@ function BIReport:postFightEnd(battleType, chapterId, wave, duration, totalTime,
|
|||||||
isFianlStep = isFianlStep,
|
isFianlStep = isFianlStep,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_FIGHT, args)
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
self:printArgsStr(EVENT_NAME_FIGHT, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BIReport:postShowFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
|
function BIReport:postShowFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
|
||||||
@ -384,7 +386,6 @@ function BIReport:postShowFightSkillSelect(battleType, skillList, chapterId, tot
|
|||||||
skill_num = skillNum,
|
skill_num = skillNum,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_FIGHT, args)
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
self:printArgsStr(EVENT_NAME_FIGHT, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BIReport:postFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
|
function BIReport:postFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
|
||||||
@ -413,7 +414,6 @@ function BIReport:postFightSkillSelect(battleType, skillList, chapterId, totalTi
|
|||||||
skill_num = skillNum,
|
skill_num = skillNum,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_FIGHT, args)
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
self:printArgsStr(EVENT_NAME_FIGHT, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 首页按钮点击
|
-- 首页按钮点击
|
||||||
@ -424,7 +424,6 @@ function BIReport:postHomeBtnCilck(clickType)
|
|||||||
chapter_id = DataManager.ChapterData:getChapterId()
|
chapter_id = DataManager.ChapterData:getChapterId()
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_CLICK_BTN, args)
|
self:report(EVENT_NAME_CLICK_BTN, args)
|
||||||
self:printArgsStr(EVENT_NAME_CLICK_BTN, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BIReport:postChapterOpenBox(chapterId, wave, rewards)
|
function BIReport:postChapterOpenBox(chapterId, wave, rewards)
|
||||||
@ -436,7 +435,6 @@ function BIReport:postChapterOpenBox(chapterId, wave, rewards)
|
|||||||
type = BIReport.CHAPTER_OPT_TYPE.BOX_OPEN
|
type = BIReport.CHAPTER_OPT_TYPE.BOX_OPEN
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_CHAPTER_OPT, args)
|
self:report(EVENT_NAME_CHAPTER_OPT, args)
|
||||||
self:printArgsStr(EVENT_NAME_CHAPTER_OPT, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 道具获取
|
-- 道具获取
|
||||||
@ -455,7 +453,6 @@ function BIReport:postItemGet(num, itemId, getType)
|
|||||||
type = getType,
|
type = getType,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_ITEM_GET, args)
|
self:report(EVENT_NAME_ITEM_GET, args)
|
||||||
self:printArgsStr(EVENT_NAME_ITEM_GET, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 道具使用
|
-- 道具使用
|
||||||
@ -474,7 +471,6 @@ function BIReport:postItemUse(num, itemId, getType)
|
|||||||
type = getType,
|
type = getType,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_ITEM_USE, args)
|
self:report(EVENT_NAME_ITEM_USE, args)
|
||||||
self:printArgsStr(EVENT_NAME_ITEM_USE, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 体力获得
|
-- 体力获得
|
||||||
@ -489,7 +485,6 @@ function BIReport:postVitGet(num, getType)
|
|||||||
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
|
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_VIT_GET, args)
|
self:report(EVENT_NAME_VIT_GET, args)
|
||||||
BIReport:printArgsStr(EVENT_NAME_VIT_GET, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 体力使用
|
-- 体力使用
|
||||||
@ -502,7 +497,6 @@ function BIReport:postVitUse(num)
|
|||||||
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
|
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_VIT_USE, args)
|
self:report(EVENT_NAME_VIT_USE, args)
|
||||||
BIReport:printArgsStr(EVENT_NAME_VIT_USE, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 点击广告按钮
|
-- 点击广告按钮
|
||||||
@ -670,7 +664,6 @@ function BIReport:postGemGet(num, getType, itemId)
|
|||||||
coin_type = BIReport.COIN_TYPE[itemId],
|
coin_type = BIReport.COIN_TYPE[itemId],
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_COIN_GET, args)
|
self:report(EVENT_NAME_COIN_GET, args)
|
||||||
BIReport:printArgsStr(EVENT_NAME_COIN_GET, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 钻石使用
|
-- 钻石使用
|
||||||
@ -687,7 +680,6 @@ function BIReport:postGemUse(num, getType, itemId)
|
|||||||
coin_all = DataManager.BagData.ItemData:getItemNumById(itemId),
|
coin_all = DataManager.BagData.ItemData:getItemNumById(itemId),
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_COIN_USE, args)
|
self:report(EVENT_NAME_COIN_USE, args)
|
||||||
BIReport:printArgsStr(EVENT_NAME_COIN_USE, args)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return BIReport
|
return BIReport
|
||||||
Loading…
x
Reference in New Issue
Block a user