Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
12f51be781
@ -400,7 +400,7 @@ function SDKManager:login(callback, loginType)
|
|||||||
params = {
|
params = {
|
||||||
type = "google",
|
type = "google",
|
||||||
id = tostring(userId),
|
id = tostring(userId),
|
||||||
id_token = tostring(token)
|
token = tostring(token)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if callback then
|
if callback then
|
||||||
|
|||||||
@ -950,6 +950,37 @@ function UIManager:backToLoginWithoutLogout()
|
|||||||
Game:showLoginUI()
|
Game:showLoginUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 掉线提示处理
|
||||||
|
function UIManager:showKickOut(msgData)
|
||||||
|
local content
|
||||||
|
local reason = NetManager:getKickOutReasonEnum(msgData.reason)
|
||||||
|
if reason == 0 then -- 服务器维护
|
||||||
|
content = I18N:getGlobalText(I18N.GlobalConst.MAINTAIN)
|
||||||
|
elseif reason == 1 then -- 网络消息流控,也就是短时间内通信次数太多
|
||||||
|
content = I18N:getGlobalText(I18N.GlobalConst.DISCONNECT_RELOGIN)
|
||||||
|
elseif reason == 2 then -- 封号
|
||||||
|
content = I18N:getGlobalText(I18N.GlobalConst.FORBIDDEN)
|
||||||
|
elseif reason == 3 then -- 多点登录
|
||||||
|
content = I18N:getGlobalText(I18N.GlobalConst.OTHER_LOGIN)
|
||||||
|
else
|
||||||
|
content = I18N:getGlobalText(I18N.GlobalConst.DISCONNECT_RELOGIN)
|
||||||
|
end
|
||||||
|
self.disconnectMsgBoxVisible = true
|
||||||
|
-- 被踢了的话就先断开连接再弹确认框
|
||||||
|
NetManager:closeAndClear()
|
||||||
|
local params = {
|
||||||
|
content = content,
|
||||||
|
okText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK),
|
||||||
|
okFunc = function()
|
||||||
|
self.disconnectMsgBoxVisible = false
|
||||||
|
ModuleManager.LoginManager:goToLoginScene()
|
||||||
|
end,
|
||||||
|
boxType = GConst.MESSAGE_BOX_TYPE.MB_OK,
|
||||||
|
top = true,
|
||||||
|
}
|
||||||
|
GFunc.showMessageBox(params)
|
||||||
|
end
|
||||||
|
|
||||||
-- 掉线提示处理
|
-- 掉线提示处理
|
||||||
function UIManager:showDisconnect()
|
function UIManager:showDisconnect()
|
||||||
self.disconnectMsgBoxVisible = true
|
self.disconnectMsgBoxVisible = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user