战令
This commit is contained in:
parent
01054b8e3b
commit
3ccfaec8d0
@ -162,6 +162,7 @@ BIReport.MAIL_OPT_TYPE = {
|
||||
|
||||
BIReport.BOUNTY_OPT_TYPE = {
|
||||
BOUNTY_LEVEL_UP = "BountyLevelUp",
|
||||
BOUNTY_REWARD = "BountyReward",
|
||||
}
|
||||
|
||||
BIReport.HERO_OPT_TYPE = {
|
||||
@ -919,4 +920,17 @@ function BIReport:postBountyLevelUp(bountyType, level, exp, season)
|
||||
self:report(EVENT_NAME_BOUNTY_OPT, args)
|
||||
end
|
||||
|
||||
function BIReport:postBountyReward(bountyType, level, exp, season, rewardLevelId, isPro)
|
||||
local args = {
|
||||
event_type = BIReport.BOUNTY_OPT_TYPE.BOUNTY_REWARD,
|
||||
season = season,
|
||||
level = level,
|
||||
exp = exp,
|
||||
bounty_type = bountyType,
|
||||
level_id = rewardLevelId,
|
||||
is_pro = isPro,
|
||||
}
|
||||
self:report(EVENT_NAME_BOUNTY_OPT, args)
|
||||
end
|
||||
|
||||
return BIReport
|
||||
@ -45,11 +45,13 @@ function BountyManager:onClaimReward(result)
|
||||
end
|
||||
end
|
||||
if result.reqData.is_pro ~= nil then
|
||||
local BountyData = DataManager.BountyData
|
||||
if result.reqData.is_pro then
|
||||
DataManager.BountyData:onClaimProReward(result.reqData.level)
|
||||
BountyData:onClaimProReward(result.reqData.level)
|
||||
else
|
||||
DataManager.BountyData:onClaimReward(result.reqData.level)
|
||||
BountyData:onClaimReward(result.reqData.level)
|
||||
end
|
||||
BIReport:postBountyReward(BountyData:getBountyReportType(), BountyData:getLevel(), BountyData:getExp(), BountyData:getSeason(), result.reqData.level, result.reqData.is_pro)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user