sdk修改
parent
932c592ea9
commit
256954f620
|
@ -130,6 +130,7 @@ end
|
|||
|
||||
function this:OnLogout()
|
||||
if IsSDKLogin then
|
||||
this.SetLoginPart(false)
|
||||
this.sdkLoginBtn:SetActive(false)
|
||||
this.inputField.gameObject:SetActive(false)
|
||||
this.UserBtn:SetActive(false)
|
||||
|
@ -172,6 +173,7 @@ function this:OnOpen(...)
|
|||
end
|
||||
|
||||
if IsSDKLogin then
|
||||
this.SetLoginPart(false)
|
||||
this.sdkLoginBtn:SetActive(false)
|
||||
this.inputField.gameObject:SetActive(false)
|
||||
this.UserBtn:SetActive(false)
|
||||
|
|
|
@ -41,7 +41,7 @@ function this.LoginRequest(openId, pt_pid, pt_gid, 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 App.TAMgr:GetDistinctId() or ""
|
||||
data.distinct_id = AppConst.isSDK and openId or ""
|
||||
data.openId = openId
|
||||
data.channel_s = pt_pid.."#"..pt_gid
|
||||
data.platform_s = AppConst.isSDK and "ADR" or "PC"
|
||||
|
@ -65,10 +65,12 @@ function this.LoginRequest(openId, pt_pid, pt_gid, func)
|
|||
AppConst.Token = msg.newToken
|
||||
|
||||
-- 打点
|
||||
ThinkingAnalyticsManager.Login(openId)
|
||||
ThinkingAnalyticsManager.SetDistinctId(AppConst.OpenId)
|
||||
ThinkingAnalyticsManager.SetSuperProperties({
|
||||
server_id = LoginManager.ServerId,
|
||||
account = AppConst.OpenId
|
||||
account = AppConst.OpenId,
|
||||
["Bundle-id"] = "123",
|
||||
xx_id = AppConst.isSDK and "ADR" or "PC"
|
||||
})
|
||||
TapDBManager.SetUser(openId)
|
||||
TapDBManager.SetServer(LoginManager.ServerId)
|
||||
|
@ -118,6 +120,7 @@ function this.PlayerInfoRequest(func)
|
|||
end
|
||||
|
||||
-- 数据打点
|
||||
ThinkingAnalyticsManager.Login(PlayerManager.uid)
|
||||
ThinkingAnalyticsManager.SetSuperProperties({
|
||||
role_id = PlayerManager.uid,
|
||||
role_name = PlayerManager.nickName,
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue