diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 349c3b7c..8bfe571f 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -471,7 +471,7 @@ function BIReport:postItemUse(num, itemId, getType) end -- 体力获得 -function BIReport:postVitGet(num, getType) +function BIReport:postVitGet(num, getType, vitAll) -- Type 获得类型 获得体力时 String Ads=广告、Gold=金币 、Time=时间恢复 、Stores=商品恢复 -- IsNew 是否是新用户 Boolean 是否为当天新用户,True = 是,False = 否 -- EnergyNum 当前体力数 Int 获得体力数量 @@ -479,7 +479,7 @@ function BIReport:postVitGet(num, getType) local args = { type = getType, vit_num = num, - vit_all = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT), + vit_all = vitAll or DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_VIT), } self:report(EVENT_NAME_VIT_GET, args) end diff --git a/lua/app/server/data/server_item_data.lua b/lua/app/server/data/server_item_data.lua index 0faffa5c..288cfe58 100644 --- a/lua/app/server/data/server_item_data.lua +++ b/lua/app/server/data/server_item_data.lua @@ -118,7 +118,7 @@ function ServerItemData:recoveryItem(data, maxCount, isInit) self:_addItem(data.cfg_id, addCount) if data.cfg_id == GConst.ItemConst.ITEM_ID_VIT then - BIReport:postItemGet(addCount, data.cfg_id) + BIReport:postVitGet(addCount, BIReport.ITEM_GET_TYPE.RECOVERY_TIME, self:getItemNumById(data.cfg_id)) end ServerDataManager:saveData() end