diff --git a/lua/app/module/login/login_manager.lua b/lua/app/module/login/login_manager.lua index bb86c50f..af8e0485 100644 --- a/lua/app/module/login/login_manager.lua +++ b/lua/app/module/login/login_manager.lua @@ -21,9 +21,8 @@ function LoginManager:loginGame() -- adjust 打开应用事件识别码 BIReport:postAdjustSimpleTrackEvent("xbszrl", {}) - local serverTime = Time:getServerTime() + local serverTime = Time:getServerTime() * 1000 local todayBeginTime = serverTime - serverTime%86400 - local now = os.date('!*t', serverTime) Time:updateByServer(serverTime, todayBeginTime) CS.BF.BFMain.IsGotServerTime = true diff --git a/lua/app/server/data/server_player_data.lua b/lua/app/server/data/server_player_data.lua index a884c989..a226caed 100644 --- a/lua/app/server/data/server_player_data.lua +++ b/lua/app/server/data/server_player_data.lua @@ -3,7 +3,6 @@ local ServerPlayerData = class("ServerPlayerData", ServerBaseData) function ServerPlayerData:init(data) self.data.loginDay = data and data.loginDay or 0 self.data.lastLoginTime = data and data.lastLoginTime or 0 - Logger.logHighlight(Time:getServerTime()) if self.data.lastLoginTime < Time:getBeginningOfServerToday() then self.data.lastLoginTime = Time:getBeginningOfServerToday() self.data.loginDay = self.data.loginDay + 1