This commit is contained in:
2026-07-28 15:00:26 +08:00
parent b0c07514c7
commit ddd9c6fd00
5 changed files with 1433 additions and 124 deletions
@@ -694,17 +694,13 @@ namespace Assets.MyGame.Scripts.Net
{
GameManager.Instance.Logout();
return;
});
}, showClose: false);
}
}
catch (Exception e)
{
Debug.LogWarning("[AccountKicked] 解析失败: " + e.Message);
}
// 提示并登出(Logout 已封装:CloseAll WebSocket + 清空用户 + 关闭所有 UI + 回登录界面)
UIManager.Instance.ShowBoardError("账号已在其他地方登录");
//GameManager.Instance.Logout();
}
/// <summary>
@@ -783,7 +779,7 @@ namespace Assets.MyGame.Scripts.Net
UIManager.Instance.ShowTiShi("连接已失效,请重新登录", () =>
{
GameManager.Instance.Logout();
});
}, showClose: false);
}
/// <summary>