From 5986f63b75bd81c6cef262c670e9251c038cbf5d Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 17 十二月 2019 17:21:07 +0800 Subject: [PATCH] 合并一个版本 --- ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs index ea31def..36fcf3d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs @@ -117,6 +117,15 @@ listResidenceSort.Add(pageData.PageData[i].Id); } } + for (int i = 0; i < listResidenceSort.Count; i++) + { + //绉婚櫎鎺変笉瀛樺湪浜嗙殑椤哄簭 + if (dicData.ContainsKey(listResidenceSort[i]) == false) + { + listResidenceSort.RemoveAt(i); + i--; + } + } //淇濆瓨椤哄簭 string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.ResidenceSortFile); UserCenterLogic.SaveFileContent(fullName, listResidenceSort); @@ -132,6 +141,10 @@ this.dicResidenceData = new Dictionary<string, Common.ResponseEntity.ResidenceObj>(); for (int i = 0; i < listResidenceSort.Count; i++) { + if (dicData.ContainsKey(listResidenceSort[i]) == false) + { + continue; + } var info = dicData[listResidenceSort[i]]; if (info.IsOthreShare == false) { @@ -206,12 +219,15 @@ { HdlThreadLogic.Current.RunThread(async () => { - ProgressBar.Show(); + this.ShowProgressBar(); + Config.Instance.HomeId = info.Id; Global.CreateHomeDirectory(info.Id); + //閲嶆柊鍒濆鍖栦綇瀹呭璞� + Config.Instance.Home = House.GetHouseByHouseId(info.Id); Config.Instance.Save(); //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼ - await UserCenterLogic.InitUserCenterMenmoryAndThread(); + await UserCenterLogic.InitUserCenterMenmoryAndThread(false); Room.InitAllRoom(); -- Gitblit v1.8.0