体力回复上报

This commit is contained in:
xiekaidong 2023-04-28 00:00:32 +08:00
parent dfdd798a0a
commit e54db9c128
2 changed files with 3 additions and 3 deletions

View File

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

View File

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