From 4fef29b9ab9f2632f15a0d45005f92d91de5d4e5 Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期四, 27 七月 2023 14:26:59 +0800 Subject: [PATCH] feature 萤石sdk更新 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs index ff4eb7d..7274673 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs @@ -114,7 +114,10 @@ { var inputTypeJOb = new JObject { }; inputTypeJOb.Add("sid", dictionary.sid); - inputTypeJOb.Add("hold_time", dictionary.hold_time); + if (!string.IsNullOrEmpty(dictionary.hold_time)) + { + inputTypeJOb.Add("hold_time", dictionary.hold_time); + } inputTypeJOb.Add("condition_type", dictionary.condition_type); if (dictionary.condition_type=="9") { inputTypeJOb.Add("identifier", dictionary.identifier); @@ -242,7 +245,10 @@ { var inputTypeJOb = new JObject { }; inputTypeJOb.Add("sid", dictionary.sid); - inputTypeJOb.Add("hold_time", dictionary.hold_time); + if (!string.IsNullOrEmpty(dictionary.hold_time)) + { + inputTypeJOb.Add("hold_time", dictionary.hold_time); + } inputTypeJOb.Add("condition_type", dictionary.condition_type); if (dictionary.condition_type == "9") { -- Gitblit v1.8.0