From a2b55742c64f4b2c9e6bd85ed3733adccdec48de Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 13 三月 2026 14:37:27 +0800
Subject: [PATCH] fix: 修复Web页面HttpClient依赖注入问题

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/CommonConveyorLineNewJob.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/CommonConveyorLineNewJob.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/CommonConveyorLineNewJob.cs
index 729e360..fc8f1cc 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/CommonConveyorLineNewJob.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/CommonConveyorLineNewJob.cs
@@ -130,14 +130,14 @@
                             if (command.TaskNo > 0)
                             {
                                 Dt_Task task = _taskService.QueryExecutingConveyorLineTask(command.TaskNo, childDeviceCode);
-                                if (task.IsNullOrEmpty())
+                                if (!task.IsNullOrEmpty())
                                 {
-                                    _conveyorLineDispatch.RequestInbound(conveyorLine, command, childDeviceCode);
+                                    // 澶勭悊浠诲姟鐘舵��
+                                    ProcessTaskState(conveyorLine, command, task, childDeviceCode);
+                                    //_conveyorLineDispatch.RequestInbound(conveyorLine, command, childDeviceCode);
                                     return;
                                 }
 
-                                // 澶勭悊浠诲姟鐘舵��
-                                ProcessTaskState(conveyorLine, command, task, childDeviceCode);
                             }
                         }
                         catch (Exception innerEx)

--
Gitblit v1.9.3