From 20f70e3446df19bf5d0faaae9f7bd58fd0fc4bcc Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 04 八月 2023 12:06:51 +0800 Subject: [PATCH] 轮询备份 --- Crabtree/SmartHome/HDL/Operation/UserConfig.cs | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs index d1bb9e7..d72ce94 100644 --- a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs +++ b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs @@ -133,6 +133,10 @@ /// 瀹夐槻瀵嗙爜 /// </summary> public string ArmPW = "85521566"; + /// <summary> + /// 缃戝叧涓婄綉绉橀挜 + /// </summary> + public string GatewayNetKey = string.Empty; /// <summary> @@ -149,7 +153,25 @@ public List<RegionInfoRes> HomeLists = new List<RegionInfoRes> (); - public RegionInfoRes CurrentRegion = new RegionInfoRes (); + //public RegionInfoRes CurrentRegion = new RegionInfoRes (); + + RegionInfoRes currentRegion = new RegionInfoRes (); + public RegionInfoRes CurrentRegion { + set { + currentRegion = value; + //2020-07-22 淇鍒囨崲浣忓畢锛孧AC涓嶅埛鏂伴棶棰� + GatewayMAC = currentRegion.MAC; + + } + get { + if (currentRegion == null) { + currentRegion = new RegionInfoRes (); + } + return currentRegion; + + } + + } public List<GatewayRes> GatewayList = new List<GatewayRes> (); -- Gitblit v1.8.0