From bbc74a6dae2e90a811b2507c5896fe89aa29ccc0 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 08 一月 2020 11:30:46 +0800
Subject: [PATCH] 2020-01-08 1.替换新服务器接口。

---
 Crabtree/SmartHome/HDL/Operation/UserConfig.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
index d1bb9e7..8a4145b 100644
--- a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
+++ b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs
@@ -124,7 +124,7 @@
         }
 
         public string VersionNumber {
-            get { return MainPage.CodeIDString; }
+            get { return MainPage.RequestVersion; }
         }
 
         public string TipVersionBackup = string.Empty;
@@ -151,13 +151,22 @@
 
         public RegionInfoRes CurrentRegion = new RegionInfoRes ();
 
+        public bool CheckHomeGateways ()
+        {
+            if (CurrentRegion.HomeGateways != null && CurrentRegion.HomeGateways.Count > 0) {
+                return true;
+            } else {
+                return false;
+            }
+        }
+
         public List<GatewayRes> GatewayList = new List<GatewayRes> ();
 
         public List<string> GatewayMACList {
             get {
                 List<string> macList = new List<string> ();
                 foreach (var mac in GatewayList) {
-                    macList.Add (mac.MAC);
+                    macList.Add (mac.GatewayUniqueId);
                 }
                 return macList;
             }

--
Gitblit v1.8.0