This commit is contained in:
xiekaidong 2023-06-15 18:55:13 +08:00
commit 2f8ba2991c

View File

@ -22,11 +22,11 @@ function ItemData:init(data)
for _, info in pairs(data.items) do for _, info in pairs(data.items) do
if info.id == GConst.ItemConst.ITEM_ID_GEM then if info.id == GConst.ItemConst.ITEM_ID_GEM then
local parmas = {} local parmas = {}
parmas.gem = info.count parmas.user_gem = info.count
CS.ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet(parmas) CS.ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet(parmas)
elseif info.id == GConst.ItemConst.ITEM_ID_GOLD then elseif info.id == GConst.ItemConst.ITEM_ID_GOLD then
local parmas = {} local parmas = {}
parmas.gold = info.count parmas.user_gold = info.count
CS.ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet(parmas) CS.ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet(parmas)
end end
if info.id == GConst.ItemConst.ITEM_ID_VIT then if info.id == GConst.ItemConst.ITEM_ID_VIT then