From b8382f45f351cf4c940fb58fc0a1973d4a55d7de Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 十月 2022 11:24:35 +0800
Subject: [PATCH] 家庭光伏H5更新

---
 HDL_ON/Entity/Function/Function.cs |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 6c095d6..b23b328 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -109,13 +109,13 @@
         /// </summary>
         /// <param name="key"></param>
         /// <returns></returns>
-        public string GetAttrState(string key)
+        public string GetAttrState(string key , string defaultValue = "0")
         {
             //涓�绾ф煡璇eyValue鍊�
             var attrState = attributes.Find((s) => s.key == key.ToString());
             if (attrState == null)
             {
-                return "0";
+                return defaultValue;
             }
             if (string.IsNullOrEmpty(attrState.state))
             {
@@ -403,15 +403,7 @@
         /// <summary>
         /// 鏄惁鍦ㄧ嚎
         /// </summary>
-        public bool online {
-            get
-            {
-                return true;
-            }
-            set {
-
-            }
-        }
+        public bool online = true;
 
         /// <summary>
         /// 鐜闈㈡澘 缁戝畾鐨� 璁惧鐩爣sid鍒楄〃
@@ -1009,6 +1001,7 @@
         /// 棰滆壊
         /// </summary>
         public const string RGB = "rgb";
+        public const string RGBW = "rgbw";
         /// <summary>
         /// 娓愬彉鏃堕棿
         /// </summary>

--
Gitblit v1.8.0