From 427219cc4f6c182a835d1be7d247a1832b98ba23 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 七月 2023 20:54:07 +0800
Subject: [PATCH] 门锁设置页面错误提示优化

---
 HDL_ON/DAL/DriverLayer/Control.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index da0a7b2..c89474a 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -941,6 +941,10 @@
         /// <returns></returns>
         public void ConvertReceiveData(byte[] receiveBytes, string ip)
         {
+            if (!UserInfo.Current.IsLogin)
+            {
+                return;
+            }
             var reString = Encoding.UTF8.GetString(receiveBytes);
             AnalysisReceiveData(reString, receiveBytes, ip);
         }
@@ -952,6 +956,7 @@
         /// <returns></returns>
         public LocalCommunicationData AnalysisReceiveData(string receiveString, byte[] originalReceiveBytes, string sIp = null)
         {
+           
             LocalCommunicationData receiveObj = new LocalCommunicationData();
 
 

--
Gitblit v1.8.0