上报玩家升级
This commit is contained in:
parent
e6435c68ff
commit
e59e40435d
@ -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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user