From abf4a98837e43e542701c60b7ec6a088cd5236da Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 22 二月 2021 09:10:35 +0800
Subject: [PATCH] 20210222

---
 HDL_ON/Entity/Function/Function.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 772be78..a148906 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -157,6 +157,19 @@
         /// 鍔熻兘鐘舵�佸垪琛�
         /// </summary>
         public List<AttributesStatus> status = new List<AttributesStatus>();
+        /// <summary>
+        /// 鑾峰彇鐘舵�佸��
+        /// </summary>
+        /// <returns></returns>
+        public string GetStatusValus(string key)
+        {
+            var d = status.Find((obj) => obj.key == key);
+            if(d==null)
+            {
+                return null;
+            }
+            return d.value;
+        }
 
         /// <summary>
         /// 鎴块棿ID鍒楄〃
@@ -672,6 +685,7 @@
     /// </summary>
     public static class FunctionAttributeKey
     {
+        public const string _null = "";
         /// <summary>
         /// 寮�鍏�
         /// </summary>
@@ -720,6 +734,13 @@
         /// value
         /// </summary>
         public const string Value = "value";
+
+        #region tuya
+        /// <summary>
+        /// 娑傞甫姘撮榾寮�鍚椂闂�
+        /// </summary>
+        public const string TuyaWaterTime = "countdown_1";
+        #endregion
     }
     /// <summary>
     /// 璁惧鍔熻兘oid

--
Gitblit v1.8.0