From e421a044c2bc490fd0c1cee8b4ec9c6a0c1695eb Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 24 May 2023 19:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 4 ---- lua/app/common/data_manager.lua | 15 --------------- 2 files changed, 19 deletions(-) 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