| | |
| | | { |
| | | //跳转页面---- |
| | | MainPage.GoUserPage(); |
| | | MainPage.InitializationData(); |
| | | return; |
| | | } |
| | | }); |
| | |
| | | */ |
| | | |
| | | /* |
| | | 查看本地是否存在数据 |
| | | 存在则导出 |
| | | * 查看本地是否存在数据 |
| | | * 存在则导出 |
| | | */ |
| | | 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(() => |
| | | { |
| | | //跳转页面---- |
| | | MainPage.GoUserPage(); |
| | | MainPage.InitializationData(); |
| | | }); |
| | | } |
| | | else |
| | |
| | | var responsePack = pm.GetHomePager(); |
| | | if (responsePack == StateCode.SUCCESS) |
| | | { |
| | | //2020-11-13 待确认,没有住宅,不算登录成功 |
| | | if (UserInfo.Current.regionList != null && UserInfo.Current.regionList.Count > 0) |
| | | { |
| | | result = true; |
| | | } |
| | | //result = true; |
| | | ////2020-11-13 待确认,没有住宅,不算登录成功 |
| | | //if (UserInfo.Current.regionList != null && UserInfo.Current.regionList.Count > 0) |
| | | //{ |
| | | // result = true; |
| | | //} |
| | | //2020-12-10 没有住宅登录成功,但是不能进入主界面 |
| | | result = true; |
| | | } |
| | | else |
| | | { |