| | |
| | | { |
| | | //跳转页面---- |
| | | MainPage.GoUserPage(); |
| | | MainPage.InitializationData(); |
| | | return; |
| | | } |
| | | }); |
| | |
| | | FileUtils.RestoreRegionFiles(regionRootPath); |
| | | DB_ResidenceData.residenceData.EixtAccount(); |
| | | OnAppConfig.Instance.RefreshUserConfig(); |
| | | DB_ResidenceData.InitRoomFunction(); |
| | | SpatialInfo.CurrentSpatial.InitRoomFunction(); |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //跳转页面---- |
| | | MainPage.GoUserPage(); |
| | | MainPage.InitializationData(); |
| | | }); |
| | | } |
| | | else |
| | |
| | | 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.SaveUserInfo(); |
| | | MainPage.Log("登录成功。"); |
| | | result = true; |
| | | //获取用户信息 |
| | | new Thread(() => |
| | | { |
| | | pm.GetUserInfo(); |
| | | pm.GetUserHeadImage(revertData.userId); |
| | | pm.GetUserInfo(false); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |