| | |
| | | * 查看本地是否存在数据 |
| | | * 存在则导出 |
| | | */ |
| | | var isExis = FileUtils.IsExisFolder(DB_ResidenceData.residenceData.CurReginID); |
| | | if (isExis) |
| | | { |
| | | FileUtils.DeleteAllFile(); |
| | | string regionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID); |
| | | FileUtils.RestoreRegionFiles(regionRootPath); |
| | | DB_ResidenceData.residenceData.EixtAccount(); |
| | | OnAppConfig.Instance.RefreshUserConfig(); |
| | | SpatialInfo.CurrentSpatial.InitRoomFunction(); |
| | | } |
| | | //var isExis = FileUtils.IsExisFolder(DB_ResidenceData.residenceData.CurReginID); |
| | | //if (isExis) |
| | | //{ |
| | | // FileUtils.DeleteAllFile(); |
| | | // string regionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID); |
| | | // FileUtils.RestoreRegionFiles(regionRootPath); |
| | | // DB_ResidenceData.residenceData.EixtAccount(); |
| | | // OnAppConfig.Instance.RefreshUserConfig(); |
| | | // SpatialInfo.CurrentSpatial.InitRoomFunction(); |
| | | //} |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //跳转页面---- |
| | |
| | | UserInfo.Current.userName = revertData.name; |
| | | UserInfo.Current.userMobileInfo = "";//重置用户手机 |
| | | UserInfo.Current.userEmailInfo = "";//重置用户邮箱 |
| | | UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像 |
| | | UserInfo.Current.headImagePagePath = "LoginIcon/2.png";// |
| | | UserInfo.Current.CurReginID = ""; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | MainPage.Log("登录成功。"); |
| | | result = true; |