调整一下bi打印逻辑

This commit is contained in:
xiekaidong 2023-04-27 09:45:16 +08:00
parent 783ade4a69
commit 442f75efab

View File

@ -135,10 +135,6 @@ function BIReport:clearAccountId()
end
function BIReport:report(name, args)
-- 内网dev包和编辑器模式不上报
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
return
end
-- 审核模式不上报
if CS.BF.BFMain.IsShenhe then
return
@ -164,9 +160,17 @@ function BIReport:report(name, args)
args.current_version = CS.BF.BFMain.Instance.GameLaunchMgr:GetCurrentVersion()
args.is_new_player = self.isNewPlayer
args.device_unique_identifier = CS.UnityEngine.SystemInfo.deviceUniqueIdentifier
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name, json.encode(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
-- 内网dev包和编辑器模式不上报
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
return
end
CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent(name)
end
end
@ -317,7 +321,6 @@ function BIReport:postFightBegin(battleType, wave, chapterId, maxChapter, startT
start_times = startTimes,
}
self:report(EVENT_NAME_FIGHT, args)
self:printArgsStr(EVENT_NAME_FIGHT, args)
end
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,
}
self:report(EVENT_NAME_FIGHT, args)
self:printArgsStr(EVENT_NAME_FIGHT, args)
end
function BIReport:postShowFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
@ -384,7 +386,6 @@ function BIReport:postShowFightSkillSelect(battleType, skillList, chapterId, tot
skill_num = skillNum,
}
self:report(EVENT_NAME_FIGHT, args)
self:printArgsStr(EVENT_NAME_FIGHT, args)
end
function BIReport:postFightSkillSelect(battleType, skillList, chapterId, totalTime, wave)
@ -413,7 +414,6 @@ function BIReport:postFightSkillSelect(battleType, skillList, chapterId, totalTi
skill_num = skillNum,
}
self:report(EVENT_NAME_FIGHT, args)
self:printArgsStr(EVENT_NAME_FIGHT, args)
end
-- 首页按钮点击
@ -424,7 +424,6 @@ function BIReport:postHomeBtnCilck(clickType)
chapter_id = DataManager.ChapterData:getChapterId()
}
self:report(EVENT_NAME_CLICK_BTN, args)
self:printArgsStr(EVENT_NAME_CLICK_BTN, args)
end
function BIReport:postChapterOpenBox(chapterId, wave, rewards)
@ -436,7 +435,6 @@ function BIReport:postChapterOpenBox(chapterId, wave, rewards)
type = BIReport.CHAPTER_OPT_TYPE.BOX_OPEN
}
self:report(EVENT_NAME_CHAPTER_OPT, args)
self:printArgsStr(EVENT_NAME_CHAPTER_OPT, args)
end
-- 道具获取
@ -455,7 +453,6 @@ function BIReport:postItemGet(num, itemId, getType)
type = getType,
}
self:report(EVENT_NAME_ITEM_GET, args)
self:printArgsStr(EVENT_NAME_ITEM_GET, args)
end
-- 道具使用
@ -474,7 +471,6 @@ function BIReport:postItemUse(num, itemId, getType)
type = getType,
}
self:report(EVENT_NAME_ITEM_USE, args)
self:printArgsStr(EVENT_NAME_ITEM_USE, args)
end
-- 体力获得
@ -489,7 +485,6 @@ function BIReport:postVitGet(num, getType)
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
}
self:report(EVENT_NAME_VIT_GET, args)
BIReport:printArgsStr(EVENT_NAME_VIT_GET, args)
end
-- 体力使用
@ -502,7 +497,6 @@ function BIReport:postVitUse(num)
vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT),
}
self:report(EVENT_NAME_VIT_USE, args)
BIReport:printArgsStr(EVENT_NAME_VIT_USE, args)
end
-- 点击广告按钮
@ -670,7 +664,6 @@ function BIReport:postGemGet(num, getType, itemId)
coin_type = BIReport.COIN_TYPE[itemId],
}
self:report(EVENT_NAME_COIN_GET, args)
BIReport:printArgsStr(EVENT_NAME_COIN_GET, args)
end
-- 钻石使用
@ -687,7 +680,6 @@ function BIReport:postGemUse(num, getType, itemId)
coin_all = DataManager.BagData.ItemData:getItemNumById(itemId),
}
self:report(EVENT_NAME_COIN_USE, args)
BIReport:printArgsStr(EVENT_NAME_COIN_USE, args)
end
return BIReport