From f59f3b24814387573b5bca9a9b6c832a3720ee7e Mon Sep 17 00:00:00 2001
From: zhangchengsong <zhangchengsong@hnkhzn.com>
Date: 星期三, 22 四月 2026 17:46:35 +0800
Subject: [PATCH] 最新

---
 项目代码/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
index 044ffd5..8257891 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
@@ -229,8 +229,11 @@
                 return apiResponse.ErrorResponse($"WCS浠诲姟娣诲姞閿欒锛屽師鍥狅細{ex.Message}");
             }
         }
-        //璁剧疆鍏夊箷
-
+        /// <summary>
+        /// 璁剧疆鍏夊箷
+        /// </summary>
+        /// <param name="setCurtain"></param>
+        /// <returns></returns>
         public ApiResponse setCurtain(SetCurtainRequest setCurtain)
         {
             if (setCurtain == null || setCurtain.Datas == null || setCurtain.Datas.Length == 0)
@@ -288,8 +291,12 @@
                 return apiResponse.ErrorResponse($"WCS璁剧疆鍏夊箷閿欒锛屽師鍥狅細{ex.Message}");
             }
         }
-
-        #endregion
+       #endregion
+        /// <summary>
+        /// agv杩涘嚭鍏ュ弽棣�
+        /// </summary>
+        /// <param name="agvUpdateRequest"></param>
+        /// <returns></returns>
         public ApiResponse getAGVStatus(AgvUpdateRequest agvUpdateRequest)
         {
             if (agvUpdateRequest == null) return new ApiResponse().ErrorResponse("璇锋眰鍙傛暟涓嶈兘涓虹┖");
@@ -325,7 +332,6 @@
                             int portStatus = conveyorLine.Communicator.Read<ushort>(permitHandShake.DeviceProAddress);
                             int stationStatus = conveyorLine.Communicator.Read<ushort>(stationNum.DeviceProAddress);
                             bool canEnter = (portStatus == 1 && stationStatus == 1) || (portStatus == 2 && stationStatus == 0);
-
                             if (!canEnter)
                             {
                                 if (request != null) conveyorLine.Communicator.Write<short>(request.DeviceProAddress, 0);
@@ -366,7 +372,7 @@
 
                 commandResult = HttpHelper.Post<CommandResult>(urlWMStaskreturn, taskInfo1, "浠诲姟鐘舵�佸洖璋�");
 
-                WriteLog.Write_Log("鍚屾缁欎笂娓稿弽棣堜换鍔″畬鎴�", "浠诲姟淇℃伅", $"浠诲姟鍙凤細{taskId}", $"璋冨彇鍙傛暟锛歿taskInfo1.ToJsonString()},杩斿洖鍙傛暟锛歿commandResult.ToJsonString()}");
+                WriteLog.Write_Log("鍚屾缁欎笂娓稿弽棣堜换鍔″畬鎴�", "浠诲姟淇℃伅", $"浠诲姟鍙凤細銆恵taskId}銆�", $"璋冨彇鍙傛暟锛氥�恵taskInfo1.ToJsonString()}銆慭n杩斿洖鍙傛暟锛歿commandResult.ToJsonString()}銆�");
                 return commandResult;
             }
             catch (Exception ex)
@@ -376,7 +382,7 @@
                 string resujos = $"WCS鎺ュ彛閿欒锛屽師鍥狅細{ex.Message}";
                 commandResult.result = resujos.ToJsonString();
 
-                WriteLog.Write_Log("鍚屾缁欎笂娓稿弽棣堜换鍔″畬鎴�", "浠诲姟淇℃伅", $"浠诲姟鍙凤細{taskId}", $"闇�瑕佷笂浼燱MS淇℃伅鍐呭锛歿commandResult.ToJsonString()},WCS鎺ュ彛閿欒锛屽師鍥狅細{ex.Message}");
+                WriteLog.Write_Log("鍚屾缁欎笂娓稿弽棣堜换鍔″畬鎴�", "浠诲姟淇℃伅", $"浠诲姟鍙凤細銆恵taskId}銆�", $"闇�瑕佷笂浼燱MS淇℃伅鍐呭锛氥�恵commandResult.ToJsonString()}銆慭nWCS鎺ュ彛閿欒锛屽師鍥狅細{ex.Message}");
                 return commandResult;
             }
             

--
Gitblit v1.9.3