From a9d40c0c64a95d7f80994974831e4c0362914342 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8F=B7=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/player/player_data.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/app/userdata/player/player_data.lua b/lua/app/userdata/player/player_data.lua index 2dcaffeb..9e531043 100644 --- a/lua/app/userdata/player/player_data.lua +++ b/lua/app/userdata/player/player_data.lua @@ -25,6 +25,11 @@ function PlayerData:init(data) self:markDirty() end) 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() end