From b13a98b48df67d902da843a3bd3d5659e3737d17 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 28 四月 2021 14:48:55 +0800
Subject: [PATCH] 优化地暖界面、音乐入口界面

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index 6b51a1f..9a56c61 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -123,7 +123,7 @@
         /// <summary>
         ///  鎸�+璺宠浆鍒伴�昏緫鐣岄潰鐨勬柟娉�
         /// </summary>
-        public static void SkipAddLogicPage()
+        public void SkipAddLogicPage()
         {
             Logic.currlogic = new Logic();
             var addLogic = new AddLogic();
@@ -244,7 +244,7 @@
             if (idStr.Code == "0" && idStr.Data != null && idStr.Data.ToString() != "")
             {
                 var date = Newtonsoft.Json.JsonConvert.SerializeObject(idStr.Data);
-                var dateList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Date>>(date);
+                var dateList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<LogicData>>(date);
                 for (int i = 0; i < dateList.Count; i++)
                 {
                     //娣诲姞閫昏緫ID
@@ -341,12 +341,6 @@
             //2-鍔熻兘鍥炬爣
             for (int i = 0; i < logic.input.Count; i++)
             {
-                if (logic.input[i] == null || logic.input[i].ToString() == "")
-                {
-                    //闃叉鏈夌殑绌哄璞★紱
-                    //姝e父鎯呭喌涓嬩笉浼氳鐜拌薄锛�
-                    continue;
-                }
 
                 var int1 = int.Parse(logic.input[i].condition_type);
                 int iconInt = 0;
@@ -484,12 +478,12 @@
             }
         }
     }
-    class Date
+    class LogicData
     {
         /// <summary>
         /// 浜戠鍞竴id
         /// </summary>
-        public string userLogicId = "";
+        public string userLogicId = ""; 
         /// <summary>
         /// 缃戝叧id
         /// </summary>

--
Gitblit v1.8.0