bug修复
This commit is contained in:
parent
4fd27dab0e
commit
86e6e62fe9
@ -13,7 +13,10 @@ local LOCAL_DATA_KEY = {
|
||||
LAST_LOGIN_URL = "LAST_LOGIN_URL",
|
||||
LAST_LOGIN_NAME = "LAST_LOGIN_NAME",
|
||||
LAST_LOGIN_IP = "LAST_LOGIN_IP",
|
||||
LAST_LOGIN_INFO = "LAST_LOGIN_INFO", -- 上一次登录成功的信息
|
||||
LAST_LOGIN_TYPE = "LAST_LOGIN_TYPE", -- 上次登录类型 token不记录
|
||||
ACCOUNT_INFO = "ACCOUNT_INFO",
|
||||
SEND_QUEUE = "SEND_QUEUE",
|
||||
SDK_LOGIN_TYPE = "SDK_LOGIN_TYPE",
|
||||
|
||||
NEED_UPDATE = "NEED_UPDATE", -- 需要更新
|
||||
@ -225,7 +228,7 @@ end
|
||||
|
||||
function LocalData:getLastLoginInfo()
|
||||
local str = self:getString(LOCAL_DATA_KEY.LAST_LOGIN_INFO, "{}")
|
||||
local info = json.decode(str)
|
||||
local info = json.decode(str) or {}
|
||||
info.type = info.type or NetManager.LOGIN_TYPE.ANONYMOUS
|
||||
if type(info.type) == "number" then
|
||||
if info.type == SDKManager.BF_LOGIN_TYPE.GOOGLE then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user