From 9b76aa77b9c5bf8ccb373cb30e3dca85d224175e Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 25 十月 2024 11:36:49 +0800
Subject: [PATCH] 金茂UI走查,字体更换

---
 HDL_ON/DAL/Mqtt/MqttClient.cs |   26 +++++++-------------------
 1 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs
index cb8b7c4..70e5ffc 100644
--- a/HDL_ON/DAL/Mqtt/MqttClient.cs
+++ b/HDL_ON/DAL/Mqtt/MqttClient.cs
@@ -59,7 +59,7 @@
         /// <summary>
         /// 鎺ㄩ�佹爣璇�
         /// </summary>
-        static string PushSignStr = DateTime.Now.Ticks.ToString();
+        static string PushSignStr = OnAppConfig.Instance.PushSignStr;
 
         /// <summary>
         /// 鏂紑杩滅▼Mqtt鐨勯摼鎺�
@@ -127,8 +127,6 @@
         {
             InitMqtt();
         }
-
-        public static bool IsInitMqtt = false;
 
         static void InitMqtt()
         {
@@ -406,7 +404,7 @@
                             try
                             {
                                 var topic = e.ApplicationMessage.Topic;
-                                MainPage.Log($"鏀跺埌mqtt涓婚:{topic}");
+                                //MainPage.Log($"鏀跺埌mqtt涓婚:{topic}");
                                 //涓�绔彛涓婚澶勭悊
                                 if (DB_ResidenceData.Instance.GatewayType == 0 && !DB_ResidenceData.Instance.CheckWhetherGatewayIdIsNull())
                                 {
@@ -861,6 +859,10 @@
         static void ReceiveNotifySqueezeAsync(string mMes)
         {
             MainPage.Log($"鎺ㄩ�佹爣璇嗭細{mMes};鏈湴鏍囪瘑锛歿PushSignStr}");
+#if DEBUG
+            MainPage.Log("璋冭瘯妯″紡锛屼笉瑙﹀彂鎸や笅绾裤��");
+            return;
+#endif
             if (mMes == PushSignStr) return;//鏄嚜宸辩殑鐧诲綍鎺ㄩ�佷笉澶勭悊//鎴栬�呭綋鍓嶄笉鏄繙绋嬮摼鎺ョ姸鎬�
 
             DisConnectRemoteMqttClient("鎸や笅绾�");
@@ -871,21 +873,6 @@
                 HDLCommon.Current.CheckLogout();
             });
         }
-
-        ///// <summary>
-        ///// 鏀跺埌CheckGateway涓婚
-        ///// </summary>
-        //static void ReceiveCheckGateway(string mMes)
-        //{
-        //    if (!Control.Ins.IsRemote) return;
-
-        //    Utlis.WriteLine("ReceiveCheckGateway锛�");
-
-        //    //CheckIfNeedReadAllDeviceStatus ();
-
-        //    //var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePack>(mMes);
-        //    Control.Ins.GatewayOnline = true;
-        //}
 
         /// <summary>
         /// 鎺ㄩ�佹尋涓嬬嚎涓婚
@@ -901,6 +888,7 @@
             {
                 case "15626203746":
                 case "13580507523":
+                case "18475593023":
                     return;
             }
 

--
Gitblit v1.8.0