From c066f9be49a723b39104e4a199b35604aa772b7f Mon Sep 17 00:00:00 2001
From: czw <selecti@yeah.net>
Date: 星期四, 03 七月 2025 11:37:37 +0800
Subject: [PATCH] 1

---
 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/TcpServer.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs"
index c20febb..e7ffa9a 100644
--- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs"
+++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs"
@@ -8,6 +8,7 @@
 using System.Net;
 using System.Text;
 using System.Threading.Tasks;
+using GZ.Modular.Redis;
 
 namespace GZ.Projects.AuxAllWCS
 {
@@ -131,6 +132,8 @@
                             }
                             else TrayIps.Add(remote_ip, mg);
 
+                            RedisHelper.Add("Scan" + (remote_ip.Split('.').LastOrDefault()), mg, out string msg);
+                            RedisHelper.Add("Scan" + (remote_ip.Split('.').LastOrDefault()) + "#time", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), out msg);
                             //Console.WriteLine("TOFF");
                             //var mst = PlcHelper.Hex2Bin("544F4646");
                             //TcpServer.TcpServerSend(remote_ip, mst);

--
Gitblit v1.9.1