From 64826cfefb4e9753c3bc47a2a4537e8006efa1a3 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Thu, 27 Apr 2023 09:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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