From d87400af518ebc9274f4447f06476959c3aa5102 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 14 七月 2020 16:29:42 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into dev-2020xm

---
 ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
index 5c1287b..419cc54 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
@@ -166,8 +166,12 @@
                 {
                     continue;
                 }
-                var sceneUi = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.SceneUI>(System.Text.Encoding.UTF8.GetString(byteData));
-                listScene.Add(sceneUi);
+                try
+                {
+                    var sceneUi = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.SceneUI>(System.Text.Encoding.UTF8.GetString(byteData));
+                    listScene.Add(sceneUi);
+                }
+                catch { }
             }
             if (listScene.Count == 0)
             {
@@ -409,10 +413,10 @@
             //纭鍒犻櫎閫夋嫨鐨勫叡浜満鏅拰鍔熻兘锛�
             this.ShowMassage(ShowMsgType.Confirm, Language.StringByID(R.MyInternationalizationString.uDeleteShardContentMsg), () =>
             {
-                HdlThreadLogic.Current.RunThread(async () =>
+                HdlThreadLogic.Current.RunThread(() =>
                 {
                     //涓婁紶鏂囦欢
-                    var result = await HdlShardLogic.Current.DoDeleteSharedContent(memberShardInfo, this.lookRoom, listDevice, listScene);
+                    var result = HdlShardLogic.Current.DoDeleteSharedContent(memberShardInfo, this.lookRoom, listDevice, listScene);
                     if (result == true)
                     {
                         HdlThreadLogic.Current.RunMain(() =>
@@ -449,11 +453,15 @@
                     }
                     //浠庡垎浜枃浠朵腑搴忓垪鍖栧洖鏉�
                     var deviceData = HdlShardLogic.Current.GetShardFileContent(deviceFile);
-                    var device = ZigBee.Device.CommonDevice.CommonDeviceByByteString(strArry[1], System.Text.Encoding.UTF8.GetString(deviceData));
-                    if (device != null)
+                    try
                     {
-                        listDevice.Add(device);
+                        var device = ZigBee.Device.CommonDevice.CommonDeviceByByteString(strArry[1], System.Text.Encoding.UTF8.GetString(deviceData));
+                        if (device != null)
+                        {
+                            listDevice.Add(device);
+                        }
                     }
+                    catch { }
                 }
             }
             return listDevice;

--
Gitblit v1.8.0