| | |
| | | { |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | //账号在别处登陆,被踢下线 跳转到登录页面 |
| | | new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); |
| | | ////账号在别处登陆,被踢下线 跳转到登录页面 |
| | | //new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); |
| | | //退出登录操作 |
| | | CheckLogout(); |
| | | |
| | | |
| | | }); |
| | | return; |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 账号在别处登陆,被踢下线 跳转到登录页面 |
| | | /// 要在主线程调用 |
| | | /// 退出登录操作 |
| | | /// </summary> |
| | | public void CheckLogout() |
| | | { |
| | | //未登录不用处理 |
| | | if (!UserInfo.Current.IsLogin) return; |
| | | |
| | | //账号在别处登陆,被踢下线 跳转到登录页面 |
| | | new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); |
| | | |
| | | #if DEBUG |
| | | return; |
| | |
| | | //网络状态变化 重置网关状态重新搜索 |
| | | Control.Ins.GatewayOnline = false; |
| | | |
| | | //网络变化,断开重连一次 |
| | | if (Control.Ins.IsRemote) |
| | | { |
| | | Control.Ins.IsRemote = false; |
| | | DAL.Mqtt.MqttClient.DisConnectRemote("UpdateInternetStatus", false); |
| | | } |
| | | |
| | | if (internetStatus == 0)//没有网络连接 0 |
| | | { |
| | | //Control.Ins.GatewayOnline = false; |
| | | Control.Ins.GatewayOnline = false; |
| | | Control.Ins.IsRemote = false; |
| | | MainPage.InternetStatus = 0; |
| | | } |