From e89fc7322f0199a9d46ec70ae850ab1a41b0fe3e Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期六, 19 十二月 2020 13:12:41 +0800 Subject: [PATCH] 2020-12-19 1.1.iOS和Android 获取天气失败问题,修复调整处理。 2.Android增加网络监听事件,和iOS封装统一监听处理接口。 --- HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs old mode 100644 new mode 100755 index d29fcf9..de010b1 --- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs @@ -89,7 +89,7 @@ aC.trait_temp.curValue = temp; //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("temp", temp.ToString()); + d.Add(FunctionAttributeKey.SetTemp, temp.ToString()); Control.Ins.SendWriteCommand(aC, d); }; btnPlus.MouseUpEventHandler = (sender, e) => @@ -104,7 +104,7 @@ btnTemp.Text = temp.ToString(); aC.trait_temp.curValue = temp; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("set_temp", aC.trait_temp.curValue.ToString()); + d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString()); Control.Ins.SendWriteCommand(aC, d); //aC.GetSendJObject @@ -115,7 +115,7 @@ btnTemp.Text = aC.trait_temp.curValue.ToString(); //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("set_temp", aC.trait_temp.curValue.ToString()); + d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString()); Control.Ins.SendWriteCommand(aC, d); }; arcBar.OnProgressChangedEvent = (sender, e) => @@ -152,7 +152,7 @@ //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("on_off", aC.trait_on_off.curValue.ToString()); + d.Add(FunctionAttributeKey.OnOff, aC.trait_on_off.curValue.ToString()); Control.Ins.SendWriteCommand(aC, d); }; } @@ -173,7 +173,7 @@ btnMode.UnSelectedImagePath = aC.curModeImage; //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("mode", curMode); + d.Add(FunctionAttributeKey.Mode, curMode); Control.Ins.SendWriteCommand(aC, d); dialog.Close(); }; @@ -197,7 +197,7 @@ btnWindSpeed.UnSelectedImagePath = aC.curFanImage; //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add("fan", curFan); + d.Add(FunctionAttributeKey.FanSpeed, curFan); Control.Ins.SendWriteCommand(aC, d); dialog.Close(); }; -- Gitblit v1.8.0