打点
This commit is contained in:
parent
5c82a532b5
commit
2489acd6e9
@ -204,23 +204,22 @@ namespace BF
|
||||
|
||||
var uri = req.CurrentUri;
|
||||
var cdnFailReport = new Dictionary<string, object>();
|
||||
cdnFailReport.TryAdd("cdn_url_scheme", uri.Scheme);
|
||||
cdnFailReport.TryAdd("cdn_url_host", uri.Host);
|
||||
cdnFailReport.TryAdd("cdn_url_path", uri.AbsolutePath);
|
||||
cdnFailReport.TryAdd("cdn_res_type", "res");
|
||||
cdnFailReport.TryAdd("cdn_version", lr.persistentAbcc.version);
|
||||
cdnFailReport.TryAdd("cdn_new_version", lr.versionInfo.version);
|
||||
cdnFailReport.TryAdd("cdn_file_path", abConfig.assetBundlePath);
|
||||
cdnFailReport.TryAdd("client_url_scheme", uri.Scheme);
|
||||
cdnFailReport.TryAdd("client_url_host", uri.Host);
|
||||
cdnFailReport.TryAdd("client_url_path", uri.AbsolutePath);
|
||||
cdnFailReport.TryAdd("client_res_type", "res");
|
||||
cdnFailReport.TryAdd("client_version", lr.persistentAbcc.version);
|
||||
cdnFailReport.TryAdd("client_new_version", lr.versionInfo.version);
|
||||
cdnFailReport.TryAdd("client_file_path", abConfig.assetBundlePath);
|
||||
if (rsp == null)
|
||||
{
|
||||
cdnFailReport.TryAdd("cdn_error_type", "http error rsp is null ");
|
||||
cdnFailReport.TryAdd("client_error_type", "http error rsp is null ");
|
||||
}
|
||||
else
|
||||
{
|
||||
cdnFailReport.TryAdd("cdn_error_type", "http error code " + rsp.StatusCode);
|
||||
cdnFailReport.TryAdd("client_error_type", "http error code " + rsp.StatusCode);
|
||||
}
|
||||
cdnFailReport.TryAdd("cdn_result", "failed");
|
||||
BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_cdn", cdnFailReport);
|
||||
BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_cdn_failed", cdnFailReport);
|
||||
}
|
||||
|
||||
if (waitDownloadList.Count > 0)
|
||||
|
||||
@ -209,17 +209,16 @@ namespace BF
|
||||
|
||||
var uri = request.uri;
|
||||
var cdnFailReport = new Dictionary<string, object>();
|
||||
cdnFailReport.TryAdd("cdn_url_scheme", uri.Scheme);
|
||||
cdnFailReport.TryAdd("cdn_url_host", uri.Host);
|
||||
cdnFailReport.TryAdd("cdn_url_path", uri.AbsolutePath);
|
||||
cdnFailReport.TryAdd("cdn_res_type", "res_filelist");
|
||||
cdnFailReport.TryAdd("cdn_version", lr.persistentAbcc.version);
|
||||
cdnFailReport.TryAdd("cdn_new_version", lr.versionInfo.version);
|
||||
cdnFailReport.TryAdd("client_url_scheme", uri.Scheme);
|
||||
cdnFailReport.TryAdd("client_url_host", uri.Host);
|
||||
cdnFailReport.TryAdd("client_url_path", uri.AbsolutePath);
|
||||
cdnFailReport.TryAdd("client_error_type", "http error code " + request.responseCode);
|
||||
cdnFailReport.TryAdd("client_res_type", "res_filelist");
|
||||
cdnFailReport.TryAdd("client_version", lr.persistentAbcc.version);
|
||||
cdnFailReport.TryAdd("client_new_version", lr.versionInfo.version);
|
||||
var abConfigPath = Path.Combine(lr.firstChoiceCDN, lr.versionInfo.version, "ab_config.bytes");
|
||||
cdnFailReport.TryAdd("cdn_file_path", abConfigPath);
|
||||
cdnFailReport.TryAdd("cdn_error_type", "http error code " + request.responseCode);
|
||||
cdnFailReport.TryAdd("cdn_result", "failed");
|
||||
BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_cdn", cdnFailReport);
|
||||
cdnFailReport.TryAdd("client_file_path", abConfigPath);
|
||||
BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_cdn_failed", cdnFailReport);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user