From d81f9bdd71e928f8193f6149f511942e188a3ae6 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 22 三月 2021 09:18:16 +0800 Subject: [PATCH] 2021-3-22-1 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs index 19bca3c..0fbb506 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Method.cs @@ -9,12 +9,13 @@ public class Method { /// <summary> - /// 绋嬪簭涓诲叆鍙� + /// 绾㈠瀹濈▼搴忎富鍏ュ彛 /// </summary> /// <param name="frame"></param> /// <param name="function"></param> public void MainView(FrameLayout frame, Entity.Function function,Action action) { + Pir pirDevice = new Pir(); if (function != null) {//鏁版嵁杞崲 @@ -211,25 +212,10 @@ var pirJosn = Newtonsoft.Json.JsonConvert.DeserializeObject<Pir>(str); if (pirJosn != null) { - -/* 椤圭洰鈥淗DL-ON_iOS鈥濈殑鏈悎骞剁殑鏇存敼 -鍦ㄦ涔嬪墠: - if (null == Pir.pirDeviceList.Find((c) => c.deviceId == pirJosn.deviceId)) -鍦ㄦ涔嬪悗: - if (null == list.pirDeviceList.Find((c) => c.deviceId == pirJosn.deviceId)) -*/ + if (null == PirDevice.Pir.pirDeviceList.Find((c) => c.deviceId == pirJosn.deviceId)) - { - - -/* 椤圭洰鈥淗DL-ON_iOS鈥濈殑鏈悎骞剁殑鏇存敼 -鍦ㄦ涔嬪墠: - Pir.pirDeviceList.Add(pirJosn); -鍦ㄦ涔嬪悗: - list.pirDeviceList.Add(pirJosn); -*/ + { PirDevice.Pir.pirDeviceList.Add(pirJosn); - } } } -- Gitblit v1.8.0