| | |
| | | /// </summary> |
| | | public class HDLCommon |
| | | { |
| | | /// <summary> |
| | | /// 收到推送Action事件 |
| | | /// </summary> |
| | | public static Action GetPushMessageAction; |
| | | |
| | | #region ■ 变量声明___________________________ |
| | | /// <summary> |
| | | /// 通用方法 |
| | |
| | | new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); |
| | | //退出登录操作 |
| | | CheckLogout(); |
| | | |
| | | }); |
| | | return; |
| | | } |
| | |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | new Alert(jpushMessageInfo.Title, jpushMessageInfo.Content, Language.StringByID(StringId.Close)).Show(); |
| | | GetPushMessageAction?.Invoke(); |
| | | }); |
| | | return; |
| | | } |
| | |
| | | { |
| | | //未登录不用处理 |
| | | if (!UserInfo.Current.IsLogin) return; |
| | | |
| | | #if DEBUG |
| | | return; |
| | | #endif |
| | | |
| | | Logout(); |
| | | } |
| | |
| | | //2.注销推送 |
| | | new HttpServerRequest().SignOutPush(); |
| | | //3.跳转登录页面 |
| | | //UserInfo.Current.LastTime = DateTime.MinValue; |
| | | //UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像 |
| | | UserInfo.Current.ClearUserInfo(); |
| | | DB_ResidenceData.residenceData.EixtAccount(); |
| | | UserInfo.Current.LastTime = DateTime.MinValue; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | DB_ResidenceData.Instance.EixtAccount(); |
| | | } |
| | | catch (Exception ex) |
| | | { |