From 1e5bd404d83c670f53434cf446bad073edbe2d3f Mon Sep 17 00:00:00 2001 From: 123 <123> Date: Sat, 29 Jun 2024 17:46:07 +0800 Subject: [PATCH] 123 --- WCS.BLL/Services/Service/OutstoreService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WCS.BLL/Services/Service/OutstoreService.cs b/WCS.BLL/Services/Service/OutstoreService.cs index f343929..9946b4e 100644 --- a/WCS.BLL/Services/Service/OutstoreService.cs +++ b/WCS.BLL/Services/Service/OutstoreService.cs @@ -963,6 +963,7 @@ namespace WCS.BLL.Services.Service TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP); byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 1); tCPClient.Send(lightOn); + Logs.Write("出库,库位灯亮:" + BitConverter.ToString(lightOn)); Thread.Sleep(100); } //报警灯亮 @@ -988,6 +989,7 @@ namespace WCS.BLL.Services.Service TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp); byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 1, 0); tCPClient.Send(warnlightOn); + Logs.Write("出库,报警灯亮:" + BitConverter.ToString(warnlightOn)); Thread.Sleep(100); } } @@ -1324,6 +1326,7 @@ namespace WCS.BLL.Services.Service TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(sendIP); byte[] lightOn = Helper.OutstoreLight(v.Value, LightColor, 0); tCPClient.Send(lightOn); + Logs.Write("出库,库位灯灭:" + BitConverter.ToString(lightOn)); Thread.Sleep(100); } //报警灯灭 @@ -1349,6 +1352,7 @@ namespace WCS.BLL.Services.Service TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp); byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 0, 0); tCPClient.Send(warnlightOn); + Logs.Write("出库,报警灯灭:" + BitConverter.ToString(warnlightOn)); Thread.Sleep(100); } }