JLChen
2020-12-12 b3abfd30576871c32f2839a322fa3bb783f96498
HDL_ON/Entity/DB_ResidenceData.cs
@@ -146,7 +146,7 @@
            functionList = null;
            HomeGateway = null;
            SpatialInfo.CurrentSpatial.ClearRooms();
            UserInfo.Current.ClearUserInfo();
            //UserInfo.Current.ClearUserInfo();
            if (MainPage.IsRemote)
            {
                DAL.Mqtt.MqttClient.DisConnectRemote("退出登录,或者切换住宅");
@@ -181,6 +181,24 @@
                }
            }
        }
        /// <summary>
        /// 检测住宅是否绑定了网关
        /// gatewayId 判空
        /// </summary>
        /// <returns></returns>
        public bool CheckWhetherGatewayIdIsNull()
        {
            if (HomeGateway != null && !string.IsNullOrEmpty(HomeGateway.gatewayId))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        /// <summary>
        /// 检测住宅是否绑定了网关
        /// </summary>