From 47f179be722a61c95cc03c8f90e1aa91c12d1124 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期三, 23 十月 2024 18:49:23 +0800
Subject: [PATCH] UI走查,安卓

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

diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs
index cb8b7c4..7113136 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())
                                 {
@@ -872,21 +870,6 @@
             });
         }
 
-        ///// <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>
         /// 鎺ㄩ�佹尋涓嬬嚎涓婚
         /// </summary>
@@ -901,6 +884,7 @@
             {
                 case "15626203746":
                 case "13580507523":
+                case "18475593023":
                     return;
             }
 

--
Gitblit v1.8.0