| | |
| | | // refreshToken = revertData.refreshToken, |
| | | // userName = revertData.name |
| | | //}; |
| | | OnAppConfig.Instance.LastLoginUserId = revertData.userId; |
| | | OnAppConfig.Instance.SaveConfig(); |
| | | if (OnAppConfig.Instance.LastLoginUserId != revertData.userId) |
| | | { |
| | | OnAppConfig.Instance.LastLoginUserId = revertData.userId; |
| | | OnAppConfig.Instance.SaveConfig(); |
| | | } |
| | | UserInfo.Current.ClearUserInfo(); |
| | | UserInfo.Current.userType = revertData.userType; |
| | | UserInfo.Current.AccountString = account; |
| | |
| | | UserInfo.Current.LoginTokenString = revertData.headerPrefix + revertData.accessToken; |
| | | UserInfo.Current.RefreshToken = revertData.refreshToken; |
| | | UserInfo.Current.userName = revertData.name; |
| | | UserInfo.Current.userMobileInfo = "";//重置用户手机 |
| | | UserInfo.Current.userEmailInfo = "";//重置用户邮箱 |
| | | UserInfo.Current.headImagePagePath = "LoginIcon/2.png";// |
| | | UserInfo.Current.CurReginID = ""; |
| | | //UserInfo.Current.userMobileInfo = "";//重置用户手机 |
| | | //UserInfo.Current.userEmailInfo = "";//重置用户邮箱 |
| | | //UserInfo.Current.headImagePagePath = "LoginIcon/2.png";// |
| | | //UserInfo.Current.CurrentRegion.RegionID = ""; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | MainPage.Log("登录成功。"); |
| | | result = true; |