sdk修改

dev_chengFeng
JieLing 2020-07-22 22:12:20 +08:00
parent 932c592ea9
commit 256954f620
6 changed files with 8 additions and 3 deletions

View File

@ -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)

View File

@ -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.