登录状态

This commit is contained in:
xiekaidong 2023-08-28 14:19:41 +08:00
parent 0ebb735e8f
commit 6409d60ae2
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ function DataManager:checkDataBind()
end
function DataManager:clear()
self.loginSuccess = false
self.initWithServer = false
if self.cacheTimer then
SchedulerManager:unscheduleGlobal(self.cacheTimer)

View File

@ -181,6 +181,7 @@ function LoginManager:loginFinish(data)
BIReport:postLvEvent(0, 1)
end
else
DataManager:setLoginSuccess(false)
local info = LocalData:getLastLoginInfo()
BIReport:postAccountLoginFailed(info.type, data.err_code)
if data.err_code == GConst.ERROR_STR.ACCOUNT_BANNED then -- 封号