| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |