From 1a0a7f736c6d2e7129e7591d40bed67ec7c0f09a Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 05 二月 2021 10:47:42 +0800
Subject: [PATCH] 2021-02-05 1.编译冲突修改

---
 HDL_ON/DAL/DriverLayer/Control.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 91f0f1b..5d85428 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -310,6 +310,7 @@
 
             MainPage.Log($"鍙戦�佹暟鎹�:{Newtonsoft.Json.JsonConvert.SerializeObject(commandDictionary)}");
 
+            //useRemote = true;
             //杩滅▼閫氳
             if (Ins.IsRemote || useRemote == true)
             {
@@ -400,6 +401,10 @@
                         if(temp!= null)
                         {
                             temp = function;
+                            if (SPK.Get3tySpk(SPK.BrandType.Tuya).Contains(temp.spk))
+                            {
+                                Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(temp.sid, temp.status);
+                            }
                         }
                     }
                 }
@@ -906,7 +911,7 @@
                                 case SPK.ElectricTuyaWeepRobot:
                                 case SPK.ElectricTuyaWaterValve:
                                     //璁惧鐘舵�佹帹閫�
-                                    var myDevice = Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp);
+                                    var myDevice = Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid,updateTemp.status);
                                     if (myDevice != null)
                                     {
                                         localObj = myDevice;

--
Gitblit v1.8.0