| | |
| | | // 1.1 没有更新 返回 |
| | | if (mUpdateDialogInfo.UpdateType == 0) return; |
| | | // 1.2 有新版本但是忽略过 返回 |
| | | if (mUpdateDialogInfo.UpdateType == 1 && (UserInfo.Current.IgnoreUpdateVersion == mUpdateDialogInfo.NewVersion)) return; |
| | | if (mUpdateDialogInfo.UpdateType == 1 && (OnAppConfig.Instance.IgnoreUpdateVersion == mUpdateDialogInfo.NewVersion)) return; |
| | | // 2.1 有新版本没有忽略过 提示更新 |
| | | if (mUpdateDialogInfo.UpdateType == 1) |
| | | { |
| | |
| | | |
| | | Action cancelAction = () => |
| | | { |
| | | UserInfo.Current.IgnoreUpdateVersion = mUpdateDialogInfo.NewVersion; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | OnAppConfig.Instance.IgnoreUpdateVersion = mUpdateDialogInfo.NewVersion; |
| | | OnAppConfig.Instance.SaveConfig(); |
| | | }; |
| | | |
| | | //1提示更新 |
| | |
| | | //2.注销推送 |
| | | new HttpServerRequest().SignOutPush(); |
| | | //3.跳转登录页面 |
| | | UserInfo.Current.LastTime = DateTime.MinValue; |
| | | UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像 |
| | | UserInfo.Current.SaveUserInfo(); |
| | | //UserInfo.Current.LastTime = DateTime.MinValue; |
| | | //UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像 |
| | | UserInfo.Current.ClearUserInfo(); |
| | | DB_ResidenceData.residenceData.EixtAccount(); |
| | | } |
| | | catch (Exception ex) |