热更上报
This commit is contained in:
parent
eccbb328ba
commit
ada8e950c4
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user