From b17efec8d4a26768ac2821e6b9038560c19a70bc Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 08 三月 2021 10:07:14 +0800
Subject: [PATCH] 2021-3-8-2
---
HDL_ON/Common/HDLCommon.cs | 34 +++++++++++++++++++++-------------
1 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs
index 4238f09..6e8b865 100644
--- a/HDL_ON/Common/HDLCommon.cs
+++ b/HDL_ON/Common/HDLCommon.cs
@@ -296,15 +296,29 @@
/// </summary>
public void CheckLogout()
{
+ //娴嬭瘯璐﹀彿锛屼笉鎸や笅绾�
+ switch (UserInfo.Current.AccountString)
+ {
+ case "13415629083":
+ case "18316120654":
+ case "15622703419":
+ case "18824864143":
+ case "464027401@qq.com":
+ case "2791308028@qq.com":
+ case "13697499568":
+ case "18666455392":
+ case "13375012446":
+ case "13602944661":
+ case "18778381374":
+ case "18316672920":
+ return;
+ }
+
//鏈櫥褰曚笉鐢ㄥ鐞�
if (!UserInfo.Current.IsLogin) return;
//璐﹀彿鍦ㄥ埆澶勭櫥闄嗭紝琚涪涓嬬嚎 璺宠浆鍒扮櫥褰曢〉闈�
new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show();
-
-//#if DEBUG
- return;
-//#endif
Logout();
}
@@ -453,19 +467,13 @@
{
MainPage.Log($"缃戠粶鐘舵�佸彉鍖栵紝褰撳墠缃戠粶:{internetStatus} 鏄惁鍚庡彴:{IsEnterBackground.ToString()}");
//缃戠粶鐘舵�佸彉鍖� 閲嶇疆缃戝叧鐘舵�侀噸鏂版悳绱�
- Control.Ins.GatewayOnline = false;
+ Control.Ins.GatewayOnline_Cloud = false;
+ Control.Ins.GatewayOnline_Local = false;
- //缃戠粶鍙樺寲锛屾柇寮�閲嶈繛涓�娆�
- if (Control.Ins.IsRemote)
- {
- Control.Ins.IsRemote = false;
- DAL.Mqtt.MqttClient.DisConnectRemote("UpdateInternetStatus", false);
- }
+ DAL.Mqtt.MqttClient.DisConnectRemote("UpdateInternetStatus", false);
if (internetStatus == 0)//娌℃湁缃戠粶杩炴帴 0
{
- Control.Ins.GatewayOnline = false;
- Control.Ins.IsRemote = false;
MainPage.InternetStatus = 0;
}
else if (internetStatus == 1)//3,4G鐨勭綉缁滆繛鎺� 1
--
Gitblit v1.8.0