diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index f0f9011b..2cbc1163 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -349,11 +349,7 @@ end -- 游戏退出 function BIReport:postGameExit() - local nowTime = Time:getServerTime() local args = {} - -- if DataManager then - -- args.duration = nowTime - DataManager:getLoginTime() - -- end self:report(EVENT_NAME_EXIT, args) end diff --git a/lua/app/common/data_manager.lua b/lua/app/common/data_manager.lua index ff08f978..e150cd78 100644 --- a/lua/app/common/data_manager.lua +++ b/lua/app/common/data_manager.lua @@ -142,12 +142,6 @@ function DataManager:initWithServerData(data) self:checkDataBind() end -function DataManager:onServerTimeBack(serverTime, loginCount, loginTime) - self.loginCount = loginCount or 1 - self.loginTime = loginTime or Time:getServerTime() - self:scheduleGlobal() -end - -- 是否首次登录 function DataManager:getIsFirstLogin() local nowTime = Time:getServerTime() @@ -165,10 +159,6 @@ function DataManager:getIsInitWithServer() return self.initWithServer end -function DataManager:getLoginTime() - return self.loginTime or 0 -end - function DataManager:registerDataCd(dataName) if not dataName then return @@ -258,11 +248,6 @@ function DataManager:scheduleGlobal() end, 1) end --- 获取登录天数 -function DataManager:getLoginCount() - return self.loginCount or 1 -end - function DataManager:getSignInfo() local nowTime = Time:getServerTime() local lastSignTime = self.signInfo.latest_at // 1000