From b8c54a7e4048317fc0f33c63a802d60396f82eb0 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 07 十二月 2022 17:31:59 +0800 Subject: [PATCH] 2022年12月07日17:31:56 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs | 7 +++++-- 1 files changed, 5 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 bb125ff..d6835e6 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs @@ -197,6 +197,7 @@ logicIfon.Add("pushConfigs", pushConfigsArray); logicjArray.Add(logicIfon); var jObject = new JObject { { "homeId", LogicMethod.Current.HomeId }, { "logics", logicjArray } }; + string str = jObject.ToString(); responsePackNew = RequestServerhomeId(jObject, NewAPI.API_POST_Logic_Add, "娣诲姞鑷姩鍖�", 5); //濡傛灉鏄痶oken杩囨湡鍒欏埛鏂皌oken if (responsePackNew.Code == StateCode.TOKEN_EXPIRED) @@ -240,7 +241,10 @@ var inputTypeJOb = new JObject { }; inputTypeJOb.Add("sid", dictionary.sid); inputTypeJOb.Add("condition_type", dictionary.condition_type); - + if (dictionary.condition_type == "9") + { + inputTypeJOb.Add("identifier", dictionary.identifier); + } var conditionArray = new JArray { }; foreach (var dic in dictionary.condition) { @@ -327,7 +331,6 @@ logicjArray.Add(logicIfon); var jObject = new JObject { { "homeId", LogicMethod.Current.HomeId }, { "logics", logicjArray } }; - string str = jObject.ToString(); responsePackNew = RequestServerhomeId(jObject, NewAPI.API_POST_Logic_Update, "缂栬緫鏇存柊鑷姩鍖�", 5); //濡傛灉鏄痶oken杩囨湡鍒欏埛鏂皌oken -- Gitblit v1.8.0