diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 7c02fd6c..b3c3eecb 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -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