From f250fe4befac5c9bacaa6eae9fa87738a70663dd Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期三, 15 一月 2025 08:45:54 +0800
Subject: [PATCH] 增加AGV重置按钮

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Common/ApiInvoke.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Common/ApiInvoke.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Common/ApiInvoke.cs"
index 366bd53..f6fa824 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Common/ApiInvoke.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Common/ApiInvoke.cs"
@@ -5,6 +5,7 @@
 using System.Text;
 using System.Threading.Tasks;
 using WIDESEAWCS_Common;
+using WIDESEAWCS_Common.ServiceLog;
 using WIDESEAWCS_Core.Helper;
 using WIDESEAWCS_DTO.TaskInfo;
 using static System.Net.WebRequestMethods;
@@ -21,13 +22,16 @@
             string response = "";
             try
             {
+                ServiceLogger.WriteDebug("SendTaskCMD", $"璇锋眰鍙傛暟锛歿postData}");
                 response = HttpManager.HttpPostAsync(url, postData).Result;
+                ServiceLogger.WriteDebug("SendTaskCMD", $"鍝嶅簲鍙傛暟锛歿response}");
                 MESResponse res  = JsonConvert.DeserializeObject<MESResponse>(response);
                 return res;
             }
             catch (Exception ex)
             {
-                throw new Exception(ex.Message);
+                ServiceLogger.WriteDebug("SendTaskCMD", $"寮傚父鎻忚堪锛歿ex.Message}--{ex.StackTrace}--{ex.InnerException}");
+                return null;
             }
         }
 

--
Gitblit v1.9.3