From 14aaca9a2e1da2849d602487a52094ee26bbe30a Mon Sep 17 00:00:00 2001 From: duyongjia <adu_555@163.com> Date: 星期二, 03 十二月 2024 13:40:41 +0800 Subject: [PATCH] 生产试运行稳定版本提交 --- 代码管理/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