修复引导报错,修复本地测试时打点数据错误的问题
parent
686ae9a826
commit
2c2734ec2a
|
@ -120,7 +120,7 @@ function this.ShowGuide(id, ...)
|
||||||
DataCenterManager.CommitClickStatus(Language[10839], tostring(id))
|
DataCenterManager.CommitClickStatus(Language[10839], tostring(id))
|
||||||
ThinkingAnalyticsManager.Track("guild", {
|
ThinkingAnalyticsManager.Track("guild", {
|
||||||
step_id = id,
|
step_id = id,
|
||||||
guild_start_time = GetTimeStamp(),
|
guild_start_time = math.floor(GetTimeStamp()),
|
||||||
})
|
})
|
||||||
-- 引导结束回调
|
-- 引导结束回调
|
||||||
local function onGuideClose()
|
local function onGuideClose()
|
||||||
|
|
|
@ -41,7 +41,7 @@ function this.LoginRequest(openId, func)
|
||||||
data.operator_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetOperatorName() or ""
|
data.operator_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetOperatorName() or ""
|
||||||
data.network_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetNetworkType() or ""
|
data.network_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetNetworkType() or ""
|
||||||
data.ip_s = AppConst.isSDK and AndroidDeviceInfo.Instance:GetLocalIpAddress() 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.openId = openId
|
||||||
data.channel_s = AppConst.isSDKLogin and AppConst.SdkChannel .. "#" .. AppConst.SdkPackageName or "" --pt_pid.."#"..pt_gid
|
data.channel_s = AppConst.isSDKLogin and AppConst.SdkChannel .. "#" .. AppConst.SdkPackageName or "" --pt_pid.."#"..pt_gid
|
||||||
data.platform_s = AppConst.isSDK and "ADR" or "PC"
|
data.platform_s = AppConst.isSDK and "ADR" or "PC"
|
||||||
|
@ -64,12 +64,12 @@ function this.LoginRequest(openId, func)
|
||||||
end
|
end
|
||||||
AppConst.Token = msg.newToken
|
AppConst.Token = msg.newToken
|
||||||
-- 打点
|
-- 打点
|
||||||
ThinkingAnalyticsManager.SetDistinctId(AppConst.OpenId)
|
-- ThinkingAnalyticsManager.SetDistinctId(AppConst.OpenId)
|
||||||
ThinkingAnalyticsManager.SetSuperProperties({
|
ThinkingAnalyticsManager.SetSuperProperties({
|
||||||
server_id = LoginManager.ServerId,
|
server_id = LoginManager.ServerId,
|
||||||
account = tostring(AppConst.OpenId),
|
account = AppConst.isSDK and tostring(AppConst.OpenId) or "",
|
||||||
["Bundle-id"] = AppConst.SdkPackageName,
|
["Bundle-id"] = AppConst.isSDK and AppConst.SdkPackageName or "",
|
||||||
xx_id = AppConst.SdkChannel
|
xx_id = AppConst.isSDK and AppConst.SdkChannel or ""
|
||||||
})
|
})
|
||||||
TapDBManager.SetServer(LoginManager.ServerId)
|
TapDBManager.SetServer(LoginManager.ServerId)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue