From 5609f7c28372e769515d5198fd4b99994e96a4b0 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 20 三月 2025 14:07:33 +0800
Subject: [PATCH] 1

---
 CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs |   32 ++++++++++++--------------------
 1 files changed, 12 insertions(+), 20 deletions(-)

diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs
index b3773a2..0a71bac 100644
--- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs
+++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs
@@ -214,7 +214,6 @@
             WebResponseContent content = new WebResponseContent();
             try
             {
-                StaticVariable.isLineRun = false;
 
                 // 妫�鏌ュ綋鍓嶆墭鐩樻槸鍚﹀瓨鍦ㄤ换鍔�
                 if (await HasTask(palletCode))
@@ -228,23 +227,20 @@
                     return content.Error($"銆恵stationManager.stationChildCode}銆戝凡瀛樺湪鐩存帴鍑哄簱浠诲姟浠诲姟");
                 }
 
-                if (StaticVariable.isStackerRun)
+                if (stationManager.stationType == 7)
                 {
-                    if (stationManager.stationType == 7)
+                    var result = await HandleStationType7(palletCode, stationManager);
+                    if (result != null)
                     {
-                        var result = await HandleStationType7(palletCode, stationManager);
-                        if (result != null)
-                        {
-                            return result;
-                        }
+                        return result;
                     }
-                    else if (stationManager.stationType == 6)
+                }
+                else if (stationManager.stationType == 6)
+                {
+                    var result = await HandleStationType6(palletCode, stationManager);
+                    if (result != null)
                     {
-                        var result = await HandleStationType6(palletCode, stationManager);
-                        if (result != null)
-                        {
-                            return result;
-                        }
+                        return result;
                     }
                 }
 
@@ -264,10 +260,6 @@
             catch (Exception ex)
             {
                 return WebResponseContent.Instance.Error(ex.Message);
-            }
-            finally
-            {
-                StaticVariable.isLineRun = true;
             }
         }
 
@@ -406,9 +398,9 @@
 
                 var task = JsonConvert.DeserializeObject<WMSTaskDTO>(content.Data.ToString());
                 ConsoleHelper.WriteSuccessLine(content.Data.ToString());
-                
+
                 content = ReceiveWMSTask(new List<WMSTaskDTO> { task });
-                
+
                 return content;
             }
             catch (Exception ex)

--
Gitblit v1.9.3