xm
2021-12-01 6d73bf6e816570291865674bef8bce8972e4de3f
HDL_ON/Entity/DB_ResidenceData.cs
@@ -19,7 +19,6 @@
        /// </summary>
        public string MasterToken;
        //RegionInfoRes _residecenInfo;
        RegionInfoRes _residecenInfo = new RegionInfoRes();
        /// <summary>
        /// 住宅基础信息
@@ -122,6 +121,7 @@
                                    ShowFunction.Sensor,ShowFunction.VideoIntercom,
                                    ShowFunction.SecurityCenter
                                });
                        instance.SupportFacePass = false;
                        instance.SaveResidenceData();
                    }
                    catch (Exception ex)
@@ -156,6 +156,10 @@
            HDL_ON.UI.UI2.Intelligence.Automation.Logic.LogicList.Clear();
            DAL.Mqtt.MqttClient.DisConnectRemote("退出登录,或者切换住宅");
        }
        /// <summary>
        /// 是否支持人脸通行
        /// </summary>
        public bool SupportFacePass = false;
        /// <summary>
        /// 网关详细信息
@@ -163,8 +167,8 @@
        public HomeGatewayInfo HomeGateway;
        /// <summary>
        /// 0:bus网关
        /// 1:A协议网关
        /// 0:一端口
        /// 1:Link协议网关
        /// </summary>
        public int GatewayType
        {
@@ -175,7 +179,7 @@
                //#endif
                if (HomeGateway == null)
                    return -1;
                if (HomeGateway.gatewayType == "AGATEWAY")
                if (HomeGateway.gatewayType != "BUSUDPGATEWAY")
                {
                    return 1;
                }
@@ -251,6 +255,11 @@
            }
        }
        ///// <summary>
        ///// 城市信息
        ///// </summary>
        //public static Entity.CityInfo cityInfo = new Entity.CityInfo();
        /// <summary>
        /// 住宅图片
@@ -443,5 +452,23 @@
        }
        #endregion
        /// <summary>
        /// 上一次提示的时间
        /// </summary>
        public DateTime LastTipTime = DateTime.MinValue;
        /// <summary>
        /// 是否需要提示
        /// </summary>
        public bool NeedTip
        {
            get
            {
                return (DateTime.Now - LastTipTime).TotalDays > 2;
            }
        }
    }
}