From 4a1765ea61fb8706bddbf90b91b310e2ce0e9f7d Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期一, 02 三月 2026 14:59:48 +0800
Subject: [PATCH] 1
---
WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs b/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
index ec175c1..ff6d505 100644
--- a/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
+++ b/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -502,28 +502,20 @@
WebResponseContent content = new WebResponseContent();
try
{
- // 鑾峰彇LED鏈嶅姟鍦板潃閰嶇疆
string ledApiAddress = AppSettings.Get("LEDApiAddress");
if (string.IsNullOrEmpty(ledApiAddress))
{
return WebResponseContent.Instance.Error("鏈壘鍒癓ED鏈嶅姟鍦板潃");
}
-
- // 瑙f瀽IP鍦板潃锛堝鐞嗗彲鑳藉寘鍚殑http://鍓嶇紑锛�
string ipAddress = ledApiAddress;
int port = 8888; // 榛樿绔彛
-
- // 鎷兼帴鎺ㄩ�佹牸寮�
string sendData = $"{stationCode}|{palletCode}|{taskType}";
- // TCP杩炴帴WinForm
using (TcpClient tcpClient = new TcpClient())
{
- // 璁剧疆杩炴帴瓒呮椂
tcpClient.ReceiveTimeout = 5000;
tcpClient.SendTimeout = 5000;
- // 杩炴帴TCP鏈嶅姟
tcpClient.Connect(ipAddress, port);
NetworkStream stream = tcpClient.GetStream();
--
Gitblit v1.9.3