用户属性主线阵容上报信息错误修复,竞技场消耗上报增加段位id,竞技场结算上报增加胜负
This commit is contained in:
parent
1759c04305
commit
0beaf804a9
@ -1048,21 +1048,23 @@ function BIReport:postAppLovinAdRevenue(msg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 竞技场进入消耗上报
|
-- 竞技场进入消耗上报
|
||||||
function BIReport:postArenaConsume(todayConsume)
|
function BIReport:postArenaConsume(gradingId, todayConsume)
|
||||||
local args = {
|
local args = {
|
||||||
event_type = BIReport.ARENA_OPT_TYPE.CONSUME,
|
event_type = BIReport.ARENA_OPT_TYPE.CONSUME,
|
||||||
|
grading_id = gradingId,
|
||||||
today_consume = todayConsume,
|
today_consume = todayConsume,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_ARENA_OPT, args)
|
self:report(EVENT_NAME_ARENA_OPT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 竞技场结算数据上报
|
-- 竞技场结算数据上报
|
||||||
function BIReport:postArenaSettlement(gradingId, round, winRate)
|
function BIReport:postArenaSettlement(gradingId, round, winRate, win)
|
||||||
local args = {
|
local args = {
|
||||||
event_type = BIReport.ARENA_OPT_TYPE.SETTLEMENT,
|
event_type = BIReport.ARENA_OPT_TYPE.SETTLEMENT,
|
||||||
grading_id = gradingId,
|
grading_id = gradingId,
|
||||||
round = round,
|
round = round,
|
||||||
win_rate = winRate,
|
win_rate = winRate,
|
||||||
|
win = win,
|
||||||
}
|
}
|
||||||
self:report(EVENT_NAME_ARENA_OPT, args)
|
self:report(EVENT_NAME_ARENA_OPT, args)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -107,7 +107,7 @@ function ArenaManager:rspChallenge(result)
|
|||||||
|
|
||||||
--bi上报
|
--bi上报
|
||||||
LocalData:recordTodayArenaBattle()
|
LocalData:recordTodayArenaBattle()
|
||||||
BIReport:postArenaConsume(LocalData:getTodayArenaBattleCount())
|
BIReport:postArenaConsume(DataManager.ArenaData:getGradingId(), LocalData:getTodayArenaBattleCount())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ function ArenaManager:rspSettlement(result)
|
|||||||
|
|
||||||
--bi上报
|
--bi上报
|
||||||
local winRate = result.total_win_count / (result.total_win_count + result.total_lose_count)
|
local winRate = result.total_win_count / (result.total_win_count + result.total_lose_count)
|
||||||
BIReport:postArenaSettlement(DataManager.ArenaData:getGradingId(), reqData.battleReport.round, winRate)
|
BIReport:postArenaSettlement(DataManager.ArenaData:getGradingId(), reqData.battleReport.round, winRate, result.settlement.win)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -134,6 +134,8 @@ function FormationData:getStageFormationBIStr()
|
|||||||
allHp = allHp + entity:getHp()
|
allHp = allHp + entity:getHp()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
allAtk = allAtk // GConst.BattleConst.DEFAULT_FACTOR
|
||||||
|
allHp = allHp // GConst.BattleConst.DEFAULT_FACTOR
|
||||||
return str, totalLevel, allAtk, allHp
|
return str, totalLevel, allAtk, allHp
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -134,7 +134,8 @@ function HeroEntity:getAttrValue(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:getAtk()
|
function HeroEntity:getAtk()
|
||||||
return self:getAttrValue(GConst.BattleConst.ATTR_NAME.ATK)
|
local atkName = GConst.MATCH_ATTACK_NAME[self:getMatchType()]
|
||||||
|
return self:getAttrValue(atkName)
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:getHp()
|
function HeroEntity:getHp()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user