From f17556d2ee4ade808f776653286690ab235463d5 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 30 八月 2023 17:18:54 +0800
Subject: [PATCH] 2023年08月30日17:18:36

---
 HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs
index 28343de..9f0a66a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs
@@ -35,29 +35,30 @@
         /// <param name="deviceId">璁惧id</param>
         /// <param name="action">鎴愬姛杩斿洖true</param>
         /// <param name="tipType">鏄惁闇�瑕佹彁绀�,榛樿鎻愮ず</param>
-        public bool DelDevice(string deviceId,Action<bool>action, TipType tipType = TipType.flicker)
+        public void DelDevice(string deviceId, Action<bool> action, TipType tipType = TipType.flicker)
         {
             Dictionary<string, object> d = new Dictionary<string, object>();
             d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id);
-            d.Add("deviceId", deviceId);//璁惧id
-            var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_Aks_KeypadExecute, "鍒犻櫎娴蜂俊鐢佃");
+            d.Add("deviceIds", new List<string> { deviceId });//璁惧id
+            var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_UnbindDeviceToHome, "鍒犻櫎娴蜂俊鐢佃");
             if (!this.DataChecking(responsePackNew, tipType))
             {
-                return false;
+                //action?.Invoke(false);
+                return;
             }
-            return true;
+            action?.Invoke(true);
         }
 
         /// <summary>
         /// 鍙戦�佹帶鍒跺懡浠�
         /// </summary>
-        /// <param name="function">褰撳墠璁惧</param>
+        /// <param name="device">褰撳墠璁惧</param>
         /// <param name="dic">鍙戦�佹帶鍒舵暟鎹�</param>
-        public void SendControlCommand(Function function, Dictionary<string, string> dic,Action<bool> action)
+        public void SendControlCommand(Function device, Dictionary<string, string> dic,Action<bool> action) 
         {
             new System.Threading.Thread(() =>
             {
-                var result = DriverLayer.Control.Ins.SendWriteCommand(function, dic, false, 0);
+                var result = DriverLayer.Control.Ins.SendWriteCommand(device, dic, false, 0);
                 action?.Invoke(result);
 
             })

--
Gitblit v1.8.0