From 57675dec9563b46704bdfa02bf306ca6bfcd7be7 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期六, 19 十二月 2020 19:03:10 +0800
Subject: [PATCH] 2020-12-19 1.修改登录锁定提示

---
 HDL_ON/DAL/DriverLayer/Packet.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs
index 3e18471..58ae2da 100644
--- a/HDL_ON/DAL/DriverLayer/Packet.cs
+++ b/HDL_ON/DAL/DriverLayer/Packet.cs
@@ -572,6 +572,8 @@
                         MainPage.Log($"name : {Name} ; mac : {mac}");
                         if (DB_ResidenceData.Instance.residenceGatewayMAC == mac)
                         {
+                            //鏈湴鎼滅储缃戝叧鎴愬姛
+                            Control.Ins.IsSearchLocalGatewaySuccessful = true;
                             Control.Ins.GatewayOnline = true;
                             Control.Ins.IsRemote = false;
                             DAL.Mqtt.MqttClient.DisConnectRemote();//鏂紑mqtt
@@ -642,12 +644,12 @@
                         receiveFlag += string.Format("{0},{1}", usefulBytes[0], usefulBytes[1]);
                         break;
                     case Command.ReadRemark:
-                        DriverLayer.Control.Ins.myUdp.ReceiveReadRemark(usefulBytes);
+                        new Control_Udp().ReceiveReadRemark(usefulBytes);
                         break;
                     default:
                         break;
                 }
-                DriverLayer.Control.Ins.myUdp.ReceiveRepeatManager(receiveFlag);
+                Control_Udp.ReceiveRepeatManager(receiveFlag,usefulBytes);
             }
             catch (Exception ex)
             {

--
Gitblit v1.8.0