From c9a1df9c19a64844d05d120ff171f523d77e7823 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 25 四月 2026 22:15:36 +0800
Subject: [PATCH] Merge branch 'xiaoyang' into dev

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.cs |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.cs
index d23fe10..3523884 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.cs
@@ -1,13 +1,6 @@
 using Microsoft.Extensions.Options;
-using System;
-using System.Collections.Generic;
-using System.IO;
 using System.Net.Sockets;
 using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using WIDESEAWCS_Model.Models;
-using WIDESEAWCS_QuartzJob;
 
 namespace WIDESEAWCS_Tasks.SocketServer
 {
@@ -137,9 +130,13 @@
         public bool IsRunning { get; private set; }
 
         /// <summary>
-        /// 涓婃鎺ユ敹娑堟伅婧�
+        /// 姣忎釜瀹㈡埛绔笂娆℃帴鏀剁殑娑堟伅锛岀敤浜庡幓閲�
         /// </summary>
-        public string lastMessage;
+        /// <remarks>
+        /// Key: 瀹㈡埛绔� ID
+        /// Value: 涓婃鎺ユ敹鐨勬秷鎭唴瀹�
+        /// </remarks>
+        public readonly Dictionary<string, string> _clientLastMessage = new();
 
         /// <summary>
         /// 娑堟伅鎺ユ敹浜嬩欢
@@ -200,8 +197,9 @@
         /// <param name="message">鏃ュ織娑堟伅</param>
         private void Log(string message)
         {
+            //Logger.None.Information(message);
             Console.WriteLine(message);
             try { File.AppendAllText(_logFile, message + Environment.NewLine); } catch { }
         }
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3