新号上报

This commit is contained in:
chenxi 2023-06-06 17:21:57 +08:00
parent 0a7c349470
commit a9d40c0c64

View File

@ -25,6 +25,11 @@ function PlayerData:init(data)
self:markDirty() self:markDirty()
end) end)
self.createTime = basicInfo.create_at or 0 -- 创角时间 self.createTime = basicInfo.create_at or 0 -- 创角时间
local time = data.now_ts or 0
if self.data.level == 1 and self.data.exp == 0 and math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录
BIReport:postVitGet(60, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, 60)
end
self:initModuleUnlockInfo() self:initModuleUnlockInfo()
end end