From 54fe169adac638bc556a49796fcbd0ff49596df6 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期五, 05 三月 2021 10:41:22 +0800
Subject: [PATCH] 使用token测试验证

---
 HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
index 8bb6b2a..54e8af9 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
@@ -27,9 +27,13 @@
         /// </summary>
         void CheckLinkStatus()
         {
-            if (Control.Ins.GatewayOnline)
+            if (!Control.Ins.GatewayOnline_Local && !Control.Ins.GatewayOnline_Cloud)
             {
-                if (Control.Ins.IsRemote)
+                bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail;
+            }
+            else
+            {
+                if (Control.Ins.GatewayOnline_Cloud)
                 {
                     bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.MainColor;
                 }
@@ -37,10 +41,6 @@
                 {
                     bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipRemote;
                 }
-            }
-            else
-            {
-                bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail;
             }
         }
 

--
Gitblit v1.8.0