From 38ee59a8404c1fa9385649f9690c8d671a5d95de Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 31 八月 2023 19:00:22 +0800 Subject: [PATCH] 2023年08月31日19:00:14 --- HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs index 875d3ad..9f0a66a 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /Send.cs @@ -43,7 +43,8 @@ var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_UnbindDeviceToHome, "鍒犻櫎娴蜂俊鐢佃"); if (!this.DataChecking(responsePackNew, tipType)) { - action?.Invoke(false); + //action?.Invoke(false); + return; } action?.Invoke(true); } @@ -51,13 +52,13 @@ /// <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