From e54db9c128d4c8481be079cdf7573aac19f7611b Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 28 Apr 2023 00:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E5=8A=9B=E5=9B=9E=E5=A4=8D=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 4 ++-- lua/app/server/data/server_item_data.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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