From ada8e950c42073ea1deb566c242d5122efc1065f Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 26 Apr 2023 15:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E6=9B=B4=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/first/first.lua | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lua/app/first/first.lua b/lua/app/first/first.lua index beae94cc..d20d703a 100644 --- a/lua/app/first/first.lua +++ b/lua/app/first/first.lua @@ -329,7 +329,6 @@ function First:requestAddress(callback, times, totalTimes) local loginCenterUrl = BFPlatform.GetLoginCenterURL() local version = BFLaunchMgr:GetCurrentVersion() - print("requestAddress -- loginCenterUrl:" .. loginCenterUrl .. " version:" .. version .. " times:" .. times .. " totalTimes:" .. totalTimes) local args = { project_id = "b6", @@ -367,12 +366,13 @@ function First:requestAddress(callback, times, totalTimes) self:setShenHeLanguageAndReqATT() -- 上报版本请求成功 local args = { - client_version = version, - client_version_url = loginCenterUrl, - client_connect_time = (os.clock() - connectStartTimes)*1000, - client_retry_times = totalTimes - 1 + request_version_current = version, + request_version_url = loginCenterUrl, + request_version_connect_time = (os.clock() - connectStartTimes)*1000, + request_version_retry_times = totalTimes - 1, + request_version_result = "success", } - CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent("client_request_version_success", json.encode(args)) + CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent("client_request_version", json.encode(args)) -- 走后续步骤 if callback then callback(rsp.Data) @@ -428,13 +428,14 @@ function First:tryShowRequestAddrErrorBox(connectStartTimes, callback, reqAddrEr if not hasRecord then self.recordReqAddrFailTimes[totalTimes] = 1 local args = { - client_version = BFLaunchMgr:GetCurrentVersion(), - client_version_url = BFPlatform.GetLoginCenterURL(), - client_connect_time = (os.clock() - connectStartTimes)*1000, - client_error_type = reqAddrErrorType, - client_retry_times = totalTimes - 1 + request_version_current = BFLaunchMgr:GetCurrentVersion(), + request_version_url = BFPlatform.GetLoginCenterURL(), + request_version_connect_time = (os.clock() - connectStartTimes)*1000, + request_version_error_type = reqAddrErrorType, + request_version_retry_times = totalTimes - 1, + request_version_result = "failed", } - CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent("client_request_version_failed", json.encode(args)) + CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostThinkingAnalyticsEvent("client_request_version", json.encode(args)) end end