Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
chenxi 2023-04-27 10:10:22 +08:00
commit f4afa2e96c

View File

@ -135,6 +135,12 @@ function BIReport:clearAccountId()
end
function BIReport:report(name, args)
self:printArgsStr(name, args)
-- 内网dev包和编辑器模式不上报
if Platform and Platform:getIsDevChannel() or EDITOR_MODE then
return
end
-- 审核模式不上报
if CS.BF.BFMain.IsShenhe then
return
@ -160,17 +166,8 @@ 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
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