From 680d96f157e4609af3e7af6f8d01ee0bf3f55063 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 11 十二月 2020 21:11:04 +0800
Subject: [PATCH] 20201210

---
 HDL_ON/Entity/DB_ResidenceData.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/Entity/DB_ResidenceData.cs b/HDL_ON/Entity/DB_ResidenceData.cs
index 8380347..f111294 100644
--- a/HDL_ON/Entity/DB_ResidenceData.cs
+++ b/HDL_ON/Entity/DB_ResidenceData.cs
@@ -142,10 +142,11 @@
         public void EixtAccount()
         {
             instance = null;
-            Rooms = null;
             ins_OidList = null;
             functionList = null;
             HomeGateway = null;
+            SpatialInfo.CurrentSpatial.ClearRooms();
+            UserInfo.Current.ClearUserInfo();
             if (MainPage.IsRemote)
             {
                 DAL.Mqtt.MqttClient.DisConnectRemote("閫�鍑虹櫥褰曪紝鎴栬�呭垏鎹綇瀹�");
@@ -251,11 +252,11 @@
         /// </summary>
         public string CurFoor = Language.StringByID(StringId.All);
 
-        /// <summary>
-        /// 鎴块棿鍒楄〃
-        /// </summary>
-        [Newtonsoft.Json.JsonIgnore]
-        public List<Room> Rooms = SpatialInfo.CurrentSpatial.RoomList;
+        ///// <summary>
+        ///// 鎴块棿鍒楄〃
+        ///// </summary>
+        //[Newtonsoft.Json.JsonIgnore]
+        //public List<Room> Rooms = SpatialInfo.CurrentSpatial.RoomList;
 
         #region 鍔熻兘鏁版嵁
         static FunctionList _functionList;

--
Gitblit v1.8.0