1112晚上,挤号
parent
ecc545625a
commit
9c272498e9
|
|
@ -180,7 +180,7 @@ function M:connect(host, groupId, callback)
|
|||
end
|
||||
end)
|
||||
else
|
||||
self.connecting = false
|
||||
self:disconnect()
|
||||
_mgr_client:destroy()
|
||||
if callback then
|
||||
callback({ ReturnCode = 101 })
|
||||
|
|
|
|||
|
|
@ -580,8 +580,22 @@ function M:EnterGroup(fgCtr, id)
|
|||
ViewUtil:CloseModalWait2()
|
||||
if res.ReturnCode ~= 0 then
|
||||
if res.ReturnCode == 101 then
|
||||
ViewUtil:ShowModalWait2(0.01)
|
||||
self:EnterGroup(fgCtr, id)
|
||||
-- ViewUtil:ShowModalWait2(0.01)
|
||||
-- self:EnterGroup(fgCtr, id)
|
||||
local _curren_msg =
|
||||
MsgWindow.new(
|
||||
self._root_view,
|
||||
'您的账号在另一个地点登录, 请确定您的账号是否泄密',
|
||||
MsgWindow.MsgMode.OnlyOk
|
||||
)
|
||||
PlayerPrefs.DeleteKey('session_id')
|
||||
PlayerPrefs.Save()
|
||||
_curren_msg.onOk:Add(
|
||||
function()
|
||||
RestartGame()
|
||||
end
|
||||
)
|
||||
_curren_msg:Show()
|
||||
return
|
||||
end
|
||||
ViewUtil.ErrorTip(res.ReturnCode, "获取房间列表列表失败")
|
||||
|
|
|
|||
|
|
@ -63,9 +63,23 @@ local function __OnGameConnectAction(state)
|
|||
--这两种情况默认重连
|
||||
elseif state == SocketCode.DisconnectByServer then
|
||||
-- __NetTip("网络断开连接!")
|
||||
NetResetConnectWindow.ShowNetReset()
|
||||
ControllerManager.reset_join_room = 0
|
||||
ControllerManager.ResetJionRoom()
|
||||
-- NetResetConnectWindow.ShowNetReset()
|
||||
local _curren_msg =
|
||||
MsgWindow.new(
|
||||
nil,
|
||||
'您的账号在另一个地点登录, 请确定您的账号是否泄密',
|
||||
MsgWindow.MsgMode.OnlyOk
|
||||
)
|
||||
PlayerPrefs.DeleteKey('session_id')
|
||||
PlayerPrefs.Save()
|
||||
_curren_msg.onOk:Add(
|
||||
function()
|
||||
RestartGame()
|
||||
end
|
||||
)
|
||||
_curren_msg:Show()
|
||||
-- ControllerManager.reset_join_room = 0
|
||||
-- ControllerManager.ResetJionRoom()
|
||||
elseif state == SocketCode.ExceptionOnConnect or state == SocketCode.NetworkException then
|
||||
-- __NetTip("请检查您的网络环境!")
|
||||
NetResetConnectWindow.ShowNetReset()
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
{
|
||||
"lua_path": "/tolua_project,/base_project,/main_project",
|
||||
"ver": "1.0.16",
|
||||
"ver": "1.0.17",
|
||||
"name": "base_script",
|
||||
"check": true,
|
||||
"bundle": "base/base_script",
|
||||
"version": "1.0.16"
|
||||
"version": "1.0.17"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.7",
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,109 @@
|
|||
[
|
||||
{
|
||||
"lua_path": "/tolua_project,/base_project,/main_project",
|
||||
"ver": "1.0.17",
|
||||
"name": "base_script",
|
||||
"check": true,
|
||||
"bundle": "base/base_script",
|
||||
"version": "1.0.17"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.7",
|
||||
"name": "common",
|
||||
"check": true,
|
||||
"bundle": "base/common",
|
||||
"version": "1.0.7"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.7",
|
||||
"name": "login",
|
||||
"check": true,
|
||||
"bundle": "base/login",
|
||||
"version": "1.0.7"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"name": "lobby",
|
||||
"check": true,
|
||||
"bundle": "base/lobby",
|
||||
"version": "1.0.8"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.7",
|
||||
"name": "Family",
|
||||
"check": true,
|
||||
"bundle": "base/Family",
|
||||
"version": "1.0.7"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "chat",
|
||||
"check": true,
|
||||
"bundle": "base/chat",
|
||||
"version": "1.0.6"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "newgroup",
|
||||
"check": true,
|
||||
"bundle": "base/newgroup",
|
||||
"version": "1.0.6"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "rank",
|
||||
"check": true,
|
||||
"version": "1.0.6",
|
||||
"bundle": "base/rank"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"name": "main_majiang",
|
||||
"check": true,
|
||||
"version": "1.0.8",
|
||||
"bundle": "base/main_majiang"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "main_poker",
|
||||
"check": true,
|
||||
"version": "1.0.6",
|
||||
"bundle": "base/main_poker"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "main_zipai",
|
||||
"check": true,
|
||||
"version": "1.0.6",
|
||||
"bundle": "base/main_zipai"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "static",
|
||||
"check": true,
|
||||
"bundle": "base/static",
|
||||
"version": "1.0.6"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"is_res": true,
|
||||
"name": "embed",
|
||||
"check": true,
|
||||
"bundle": "base/embed",
|
||||
"version": "1.0.6"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "main_pokemajiang",
|
||||
"check": true,
|
||||
"version": "1.0.6",
|
||||
"bundle": "base/main_pokemajiang"
|
||||
},
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"name": "main_zipaimajiang",
|
||||
"check": true,
|
||||
"version": "1.0.6",
|
||||
"bundle": "base/main_zipaimajiang"
|
||||
}
|
||||
]
|
||||
Loading…
Reference in New Issue