From 5215a463afd281f62ecd67b2ae87d37404174287 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 28 八月 2023 15:41:59 +0800 Subject: [PATCH] 2023年08月28日15:41:39 --- HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs index 28343de..875d3ad 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs @@ -35,17 +35,17 @@ /// <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 true; + action?.Invoke(true); } /// <summary> -- Gitblit v1.8.0