From 94968f63b181eee088dab157881daf50ec5cb56a Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 12 三月 2021 12:00:54 +0800
Subject: [PATCH] 2021-3-12-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs |   76 +------------------------------------
 1 files changed, 3 insertions(+), 73 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs
index addde93..cc1412a 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs
@@ -228,7 +228,8 @@
         /// <summary>
         /// 鑾峰彇閬ユ帶鍣ㄥ垪琛�
         /// </summary>
-        public static void GetControlList(Action actio)
+        /// <param name="action">鍥炶皟鍑芥暟</param>
+        public static void GetControlList(Action action)
         {
 
             new System.Threading.Thread(() =>
@@ -272,81 +273,10 @@
 
                     Application.RunOnMainThread(() =>
                     {
-                        actio();
-                    });
-                }
-
-            })
-            { IsBackground = true }.Start();
-
-        }
-        /// <summary>
-        /// 鑾峰彇閬ユ帶鍣ㄥ垪琛�
-        /// </summary>
-        /// <param name="frame">log鍥炬爣鍔犺浇鐣岄潰</param>
-        /// <param name="action">鍥炶皟鍑芥暟</param>
-        public static void GetControlList1(FrameLayout frame, Action action)
-        {
-            //鍔犺浇log
-            Loading loading = new Loading();
-            frame.AddChidren(loading);
-            HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null;
-            loading.Start();
-            new System.Threading.Thread(() =>
-            {
-                try
-                {
-                    for (int i = 0; i < Pir.pirDeviceList.Count; i++)
-                    {
-                        var pirDevice = Pir.pirDeviceList[i];
-                        try
-                        {
-                            responsePackNew = PirSend.ControlList(pirDevice);
-
-                        }
-                        catch { }
-                        finally
-                        {
-                            Application.RunOnMainThread(() =>
-                            {
-                                try
-                                {
-                                    if (responsePackNew != null && responsePackNew.Code == "0" && responsePackNew.Data.ToString() != "")
-                                    {
-                                        var jArray = Newtonsoft.Json.Linq.JArray.Parse(responsePackNew.Data.ToString());
-                                        for (int a = 0; a < jArray.Count; a++)
-                                        {
-                                            var jay = jArray[a];
-                                            //鏁版嵁杩斿簭鍒楀寲涓篖ogic瀵硅薄
-                                            var str = Newtonsoft.Json.JsonConvert.SerializeObject(jay);
-                                            var pirJosn = Newtonsoft.Json.JsonConvert.DeserializeObject<Entity.Function>(str);
-                                            if (pirJosn != null)
-                                            {
-                                                if (null == pirDevice.FunctioList.Find((c) => c.sid == pirJosn.sid))
-                                                {
-                                                    pirDevice.FunctioList.Add(pirJosn);
-                                                }
-                                            }
-
-                                        }
-                                    }
-                                   
-                                }
-                                catch { }
-
-                            });
-                        }
-                    }
-                }
-                catch { }
-                finally
-                {
-                    Application.RunOnMainThread(() =>
-                    {
-                        loading.Hide();
                         action();
                     });
                 }
+
             })
             { IsBackground = true }.Start();
 

--
Gitblit v1.8.0