From 19b4abbebede2255b8d9f286105c7bf41d254429 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 29 十二月 2023 09:44:58 +0800 Subject: [PATCH] 金路备份 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index 51866d6..246c9b7 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -133,10 +133,6 @@ new System.Threading.Thread(async () => { while (true) { - if (!UserInfo.Current.IsLogin) - { - return; - } try { System.Threading.Thread.Sleep(2000); @@ -149,6 +145,7 @@ await StartCloudMqtt(); await SubscribeTopics(); + } catch { } } @@ -834,16 +831,11 @@ /// </summary> static void ReceiveNotifySqueezeAsync(string mMes) { -#if DEBUG - //return; -#endif if (mMes == PushSignStr) return;//鏄嚜宸辩殑鐧诲綍鎺ㄩ�佷笉澶勭悊//鎴栬�呭綋鍓嶄笉鏄繙绋嬮摼鎺ョ姸鎬� //娴嬭瘯璐﹀彿锛屼笉鎸や笅绾� switch (UserInfo.Current.userMobileInfo) { - case "18316672920": case "15626203746": - case "464027401@qq.com": return; } @@ -894,9 +886,7 @@ static void SendPushSignOut() { byte[] message = Encoding.UTF8.GetBytes(PushSignStr); -#if DEBUG MqttRemoteSend(message, 4); -#endif } /// <summary> @@ -984,7 +974,7 @@ MqttInfoConfig.Current.mMqttInfo = mqttInfoRequestResult_Obj; - await MQTTConnectAsync(); + //await MQTTConnectAsync(); //1.鍒ゆ柇鏄惁缁戝畾浜嗙綉鍏筹紝鑾峰彇缃戝叧杩滅▼杩炴帴鐨勫姞瀵咾EY //if (DB_ResidenceData.Instance.CheckWhetherGatewayIsBound()) { -- Gitblit v1.8.0