From 2adfc785179e551e6f99fd6799e7eebe360dd6c3 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 25 四月 2026 18:44:19 +0800
Subject: [PATCH] refactor(RobotJob): 移除HandleClientAsync方法中未使用的robotCrane参数
---
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