From 8960f866958ece0900b0ee13e70c9320507f98db Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 07 二月 2023 18:50:23 +0800
Subject: [PATCH] 2023年02月07日18:50:21

---
 HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
index 1af093e..69e0702 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
@@ -17,14 +17,14 @@
         /// <param name="updataFunction"></param>
         public void UpdataStates(Function updataFunction, FrameLayout view, VerticalScrolViewLayout scrolView, Room room = null)
         {
+            if (view == null || scrolView == null || updataFunction == null)
+            {
+                return;
+            }
             Application.RunOnMainThread((() =>
             {
                 try
                 {
-                    if (view == null || scrolView == null || updataFunction == null)
-                    {
-                        return;
-                    }
                     if (!scrolView.ScrollEnabled)
                     {
                         return;
@@ -112,10 +112,10 @@
                                     {
                                         #region 绐楀笜鏇存柊
                                         var onoffString = updataFunction.GetAttrState(FunctionAttributeKey.OnOff);
-                                        if (onoffString == "stop")
-                                        {
-                                            return;
-                                        }
+                                        //if (onoffString == "stop")
+                                        //{
+                                        //    return;
+                                        //}
                                         var percent = onoffString == "off" ? 0 : 100;
                                         if (updataFunction.GetAttributes().Contains(FunctionAttributeKey.Percent))
                                         {
@@ -172,7 +172,7 @@
                                         #endregion
                                     }
                                     //鏇存柊姣背娉紶鎰熷櫒鐘舵��
-                                    else if(SPK.SenesorMegahealth == updataFunction.spk)
+                                    else if(SPK.SenesorMegahealth == updataFunction.spk || SPK.SensorMmvPose == updataFunction.spk)
                                     {
                                         if (cTag == updataFunction.sid + "_SenesorMegahealth_Status")
                                         {

--
Gitblit v1.8.0