From caadf73aff8a8a6b95e5956066a13a9a3205f5c0 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 15 三月 2022 18:02:45 +0800
Subject: [PATCH] 隐私协议选择状态

---
 HDL_ON/Entity/Function/Function.cs |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 3772dc2..b64d1e6 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -556,6 +556,13 @@
                 SaveFunctionFile();
                 if (pack.Code == StateCode.SUCCESS)
                 {
+                    if (UI.RoomPage.bodyView != null)
+                    {
+                        Application.RunOnMainThread(() =>
+                        {
+                            UI.RoomPage.bodyView.ReLoadPage();
+                        });
+                    }
                 }
                 else
                 {
@@ -709,12 +716,8 @@
             sendDataObj.time_stamp = Utlis.GetTimestamp();
             var acd = new AlinkDoorlockStatus();
             acd.sid = sid;
-            acd.user_id = userId;
+            acd.user_id = extStr;
             acd.ext_str = extStr;
-#if DEBUG
-            acd.user_id = "013";
-            acd.ext_str = "999999";
-#endif
             sendDataObj.objects.Add(acd);
             return sendDataObj;
         }

--
Gitblit v1.8.0