修复引导报错,修复本地测试时打点数据错误的问题

dev_chengFeng
gaoxin 2020-07-25 18:10:05 +08:00
parent 686ae9a826
commit 2c2734ec2a
2 changed files with 6 additions and 6 deletions

View File

@ -120,7 +120,7 @@ function this.ShowGuide(id, ...)
DataCenterManager.CommitClickStatus(Language[10839], tostring(id))
ThinkingAnalyticsManager.Track("guild", {
step_id = id,
guild_start_time = GetTimeStamp(),
guild_start_time = math.floor(GetTimeStamp()),
})
-- 引导结束回调
local function onGuideClose()

View File

@ -41,7 +41,7 @@ function this.LoginRequest(openId, func)
data.operator_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetOperatorName() or ""
data.network_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetNetworkType() or ""
data.ip_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetLocalIpAddress() or ""
data.distinct_id = AppConst.isSDK and openId or ""
data.distinct_id = AppConst.isSDK and ThinkingAnalyticsManager.GetDistinctId() or ""
data.openId = openId
data.channel_s = AppConst.isSDKLogin and AppConst.SdkChannel .. "#" .. AppConst.SdkPackageName or "" --pt_pid.."#"..pt_gid
data.platform_s = AppConst.isSDK and "ADR" or "PC"
@ -64,12 +64,12 @@ function this.LoginRequest(openId, func)
end
AppConst.Token = msg.newToken
-- 打点
ThinkingAnalyticsManager.SetDistinctId(AppConst.OpenId)
-- ThinkingAnalyticsManager.SetDistinctId(AppConst.OpenId)
ThinkingAnalyticsManager.SetSuperProperties({
server_id = LoginManager.ServerId,
account = tostring(AppConst.OpenId),
["Bundle-id"] = AppConst.SdkPackageName,
xx_id = AppConst.SdkChannel
account = AppConst.isSDK and tostring(AppConst.OpenId) or "",
["Bundle-id"] = AppConst.isSDK and AppConst.SdkPackageName or "",
xx_id = AppConst.isSDK and AppConst.SdkChannel or ""
})
TapDBManager.SetServer(LoginManager.ServerId)
end)