上报玩家升级

This commit is contained in:
chenxi 2023-06-06 17:13:44 +08:00
parent e6435c68ff
commit e59e40435d
2 changed files with 10 additions and 0 deletions

View File

@ -179,6 +179,7 @@ local EVENT_NAME_VIT_USE = "client_vit_use"
local EVENT_NAME_VIT_GET = "client_vit_get"
local EVENT_NAME_DAILY_TASK = "client_daily_task"
local EVENT_NAME_MAIL_OPT = "client_mail_opt"
local EVENT_NAME_PLAYER_LV_UP = "client_player_lv_up" -- 玩家升级
function BIReport:setIsNewPlayer(isNewPlayer)
self.isNewPlayer = isNewPlayer
@ -825,4 +826,12 @@ function BIReport:postAccountChangeFinish(loginType, success)
self:report(EVENT_NAME_ACCOUNT_OPT, args)
end
function BIReport:postPlayerLvUp(fromLevel, toLevel)
local args = {
player_level_from = fromLevel,
player_level = toLevel,
}
self:report(EVENT_NAME_PLAYER_LV_UP, args)
end
return BIReport

View File

@ -21,6 +21,7 @@ function PlayerManager:onLevelUpFinish(result)
self:showPlayerUpUI(currLv, result.rewards)
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_PLAYER_LV_REACH, diffLv)
DataManager:tryOpenModules()
BIReport:postPlayerLvUp(currLv, result.level)
end
end
end