引导打点数据类型修改

dev_chengFeng
JieLing 2020-07-27 17:48:33 +08:00
parent a003779452
commit 67914ba7dd
4 changed files with 17 additions and 5 deletions

View File

@ -16,7 +16,17 @@ local function _DicToStr(data)
if index ~= 1 then
str = str .."|"
end
str = str..string.format(fmt, key, tostring(value), type(value) == "number" and 1 or 0)
local valueType = 0
if type(value) == "number" then
valueType = 1
elseif type(value) == "string" then
local sl = string.split(value, "#")
value = sl[1]
if sl[2] then
valueType = tonumber(sl[2]) or 0
end
end
str = str..string.format(fmt, key, tostring(value), valueType)
index = index + 1
end
return str

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 = math.floor(GetTimeStamp()),
guild_start_time = math.floor(GetTimeStamp()).. "#3",
})
-- 引导结束回调
local function onGuideClose()

View File

@ -68,8 +68,9 @@ function this.LoginRequest(openId, func)
ThinkingAnalyticsManager.SetSuperProperties({
server_id = LoginManager.ServerId,
account = AppConst.isSDK and tostring(AppConst.OpenId) or "",
["Bundle-id"] = AppConst.isSDK and AppConst.SdkPackageName or "",
xx_id = AppConst.isSDK and AppConst.SdkChannel or ""
Bundle_id = AppConst.isSDK and AppConst.SdkPackageName or "",
xx_id = AppConst.isSDK and AppConst.SdkChannel or "",
-- test_list = "1,2,3#2", -- 数组
})
TapDBManager.SetServer(LoginManager.ServerId)
end)
@ -124,6 +125,7 @@ function this.PlayerInfoRequest(func)
role_id = PlayerManager.uid,
role_name = PlayerManager.nickName,
vip_level = msg.player.vipLevel,
-- test_date = math.floor(msg.player.serverTime) .. "#3", -- 日期
})
TapDBManager.SetUser(PlayerManager.uid)
TapDBManager.SetLevel(PlayerManager.level)

View File

@ -89,7 +89,7 @@ function this.RequestPay(context)
goods_id = context.Id,
goods_name = context.Name,
order_money_amount = context.Price,
["Bundle-id"] = AppConst.SdkPackageName,
Bundle_id = AppConst.SdkPackageName,
})
end