From b6837f097e9cdb2645368aed4ddb03f580c331e4 Mon Sep 17 00:00:00 2001
From: z8018 <1282578289@qq.com>
Date: 星期一, 05 五月 2025 17:29:07 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 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 173377b..61f9a66 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"
@@ -106,7 +106,7 @@
                                 otherDevice.Communicator.Write("DB15.6", toplc);   //鍐欏叆鍘诲悜
                                 otherDevice.Communicator.Write("DB15.0", true);
 
-                                var datast = _OrderDetailsService.ToMesBarc(int.Parse(barcode));
+                                //var datast = _OrderDetailsService.ToMesBarc(int.Parse(barcode));
                             }
                             else if (toplc == -1)//鏉挎潗鏃犳潯鐮�
                             {
@@ -120,7 +120,7 @@
                     }
                     else
                     {
-                        if (wcsResponse)
+                        if (wcsResponse && !request)
                             otherDevice.Communicator.Write("DB15.0", false);  //娓呴櫎鍝嶅簲
                     }
                 }
@@ -137,7 +137,7 @@
             List<int> result = new List<int>();
             for (int i = 0; i < values.Length; i++)
             {
-                if (value.Equals(values[i]))
+                if (value?.Equals(values[i]) ?? false)
                 {
                     result.Add(i);
                 }

--
Gitblit v1.9.3