From 6e7f192546903b04d2d37e852dd9b248e938c790 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期五, 01 八月 2025 09:23:17 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" index 8358d6a..5ac5eaa 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" @@ -90,15 +90,13 @@ barcode = otherDevice.Communicator.Read<string>("DB15.32"); //鏉$爜 - List<byte> bytes = otherDevice.Communicator.Read("DB15.34", 40).ToList(); + //List<byte> bytes = otherDevice.Communicator.Read("DB15.34", 40).ToList(); - byte[] temp = bytes.ToArray().SelectMiddle(0, bytes.IndexOf(0)); + //byte[] temp = bytes.ToArray().SelectMiddle(0, bytes.IndexOf(0)); - barcode = Encoding.Default.GetString(temp); + //barcode = Encoding.Default.GetString(temp); - string pattern = @"\d+"; // 鍖归厤鏁板瓧 - Match match = Regex.Match(barcode, pattern); - string barcodeNumber = match.Value; + string barcodeNumber = barcode; if (!string.IsNullOrEmpty(barcodeNumber)) { -- Gitblit v1.9.3