From 55803afe96d563947f8cbbc0bc1e01548bb53035 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 29 六月 2021 15:41:21 +0800 Subject: [PATCH] 2021-6-29-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs index 0d9542d..2f32631 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs @@ -114,6 +114,7 @@ { var outputTypeJOb = new JObject { }; outputTypeJOb.Add("sid", dictionary.sid); + outputTypeJOb.Add("delay", dictionary.delay); outputTypeJOb.Add("target_type", dictionary.target_type); var statusArray = new JArray { }; foreach (var dic in dictionary.status) @@ -211,6 +212,7 @@ conditionJOb.Add("key", dic["key"]); var c1 = ""; dic.TryGetValue("comparator", out c1); + c1 = string.IsNullOrEmpty(c1) ? "" : c1; conditionJOb.TryAdd("comparator", c1); conditionJOb.Add("data_type", dic["data_type"]); conditionJOb.Add("value", dic["value"]); @@ -225,6 +227,7 @@ { var outputTypeJOb = new JObject { }; outputTypeJOb.Add("sid", dictionary.sid); + outputTypeJOb.Add("delay", dictionary.delay); outputTypeJOb.Add("target_type", dictionary.target_type); var statusArray = new JArray { }; foreach (var dic in dictionary.status) @@ -244,7 +247,8 @@ var pushConfigsArray = new JArray { }; if (logic.pushConfigs.Count > 0) - { //聽鎺ㄩ�佹枃鏈� + { + //聽鎺ㄩ�佹枃鏈� foreach (var pushConfig in logic.pushConfigs) { -- Gitblit v1.8.0