diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index d6346202..3d48d4e5 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -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 \ No newline at end of file diff --git a/lua/app/module/player/player_manager.lua b/lua/app/module/player/player_manager.lua index e1303cfd..b477c407 100644 --- a/lua/app/module/player/player_manager.lua +++ b/lua/app/module/player/player_manager.lua @@ -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