wxr
2024-09-23 7f7c2ad186b118a87993d3bcd49e4fb3e28dfc66
Update HDLCommon.cs

增加异常捕获
1个文件已修改
18 ■■■■ 已修改文件
HDL_ON/Common/HDLCommon.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/Common/HDLCommon.cs
@@ -546,11 +546,19 @@
            }
            //未登录不用处理
            if (!UserInfo.Current.IsLogin) return;
            //账号在别处登陆,被踢下线 跳转到登录页面
            new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show();
            //if (!UserInfo.Current.IsLogin) return;
            try
            {
                Application.RunOnMainThread(() =>
                {
                    //账号在别处登陆,被踢下线 跳转到登录页面
                    new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show();
                });
            }
            catch (Exception ex)
            {
                MainPage.Log("Error", $"挤下线提示窗口异常:{ex.StackTrace}");
            }
            try
            {
                Logout();