删除不用的
This commit is contained in:
parent
01522e6e0c
commit
e421a044c2
@ -349,11 +349,7 @@ end
|
|||||||
|
|
||||||
-- 游戏退出
|
-- 游戏退出
|
||||||
function BIReport:postGameExit()
|
function BIReport:postGameExit()
|
||||||
local nowTime = Time:getServerTime()
|
|
||||||
local args = {}
|
local args = {}
|
||||||
-- if DataManager then
|
|
||||||
-- args.duration = nowTime - DataManager:getLoginTime()
|
|
||||||
-- end
|
|
||||||
self:report(EVENT_NAME_EXIT, args)
|
self:report(EVENT_NAME_EXIT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -142,12 +142,6 @@ function DataManager:initWithServerData(data)
|
|||||||
self:checkDataBind()
|
self:checkDataBind()
|
||||||
end
|
end
|
||||||
|
|
||||||
function DataManager:onServerTimeBack(serverTime, loginCount, loginTime)
|
|
||||||
self.loginCount = loginCount or 1
|
|
||||||
self.loginTime = loginTime or Time:getServerTime()
|
|
||||||
self:scheduleGlobal()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- 是否首次登录
|
-- 是否首次登录
|
||||||
function DataManager:getIsFirstLogin()
|
function DataManager:getIsFirstLogin()
|
||||||
local nowTime = Time:getServerTime()
|
local nowTime = Time:getServerTime()
|
||||||
@ -165,10 +159,6 @@ function DataManager:getIsInitWithServer()
|
|||||||
return self.initWithServer
|
return self.initWithServer
|
||||||
end
|
end
|
||||||
|
|
||||||
function DataManager:getLoginTime()
|
|
||||||
return self.loginTime or 0
|
|
||||||
end
|
|
||||||
|
|
||||||
function DataManager:registerDataCd(dataName)
|
function DataManager:registerDataCd(dataName)
|
||||||
if not dataName then
|
if not dataName then
|
||||||
return
|
return
|
||||||
@ -258,11 +248,6 @@ function DataManager:scheduleGlobal()
|
|||||||
end, 1)
|
end, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取登录天数
|
|
||||||
function DataManager:getLoginCount()
|
|
||||||
return self.loginCount or 1
|
|
||||||
end
|
|
||||||
|
|
||||||
function DataManager:getSignInfo()
|
function DataManager:getSignInfo()
|
||||||
local nowTime = Time:getServerTime()
|
local nowTime = Time:getServerTime()
|
||||||
local lastSignTime = self.signInfo.latest_at // 1000
|
local lastSignTime = self.signInfo.latest_at // 1000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user