From 98c998ca98ee014266f65a517d672df0cd97f244 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期三, 25 三月 2020 17:51:18 +0800 Subject: [PATCH] 2020-03-25-1 --- ZigbeeApp/Shared/Phone/Device/Logic/Send.cs | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs index dbca6ba..2ae0329 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs @@ -54,11 +54,16 @@ return logicIdList; } mainGateWay.GwResDataAction += action; - - var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2004 } }; - var jObjectdata1 = new JObject { { "LogicType", LogicType } }; - jObject.Add("Data", jObjectdata1); - mainGateWay?.Send("Logic/GetLogicList", jObject.ToString()); + try + { + var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2004 } }; + var jObjectdata1 = new JObject { { "LogicType", LogicType } }; + jObject.Add("Data", jObjectdata1); + mainGateWay?.Send("Logic/GetLogicList", jObject.ToString()); + } + catch(Exception e) { + var d = e.Message; + } //await System.Threading.Tasks.Task.Run(async () => //{ var dateTime = DateTime.Now; @@ -260,7 +265,7 @@ try { - + var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2000 } }; var selectMonthList = new JArray { }; foreach (var intvalue in logic.TimeAttribute.SelectMonDate) @@ -490,6 +495,7 @@ ["Type"] = int.Parse(dictionary["Type"]), ["Account"] = dictionary["Account"], ["UserId"] = dictionary["UserId"], + ["AccountName"] = dictionary["AccountName"], }; accounts.Add(accounts1); @@ -513,6 +519,7 @@ } } + var data = new JObject{ { "LogicId",logic.LogicId}, { "IsEnable", logic.IsEnable} , -- Gitblit v1.8.0