From 821397b01a004f8560c987ef83146614a9356ecb Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期六, 03 一月 2026 17:18:36 +0800
Subject: [PATCH] 1
---
WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs
index b103c2a..a60e0fb 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs
@@ -498,7 +498,6 @@
{
ids = item.LinId;
var postContent = new MultipartFormDataContent();
- postContent.Headers.Add("ContentType", $"multipart/form-data");
postContent.Add(new StringContent(ids), "ids");
string result = string.Empty;
HttpClient client = null;
@@ -506,13 +505,13 @@
{
using (client = new HttpClient())
{
- HttpResponseMessage response = client.PostAsync(ToCancelOutFeedbackERP, postContent)
- .ConfigureAwait(false).GetAwaiter().GetResult();
+ // 2. 鍙戦�佽姹�
+ var response = HttpHelper.Post<WebResponseContent>(ToCancelOutFeedbackERP, postContent, "鍑哄簱鏄庣粏鍙栨秷鍥炰紶ERP");
- // 纭繚鍝嶅簲鎴愬姛
- response.EnsureSuccessStatusCode();
- result = response.Content.ReadAsStringAsync()
- .ConfigureAwait(false).GetAwaiter().GetResult();
+ if (response.Code !=0)
+ {
+ throw new Exception($"鎿嶄綔澶辫触: {response.msg ?? "鏈彁渚涢敊璇俊鎭�"}");
+ }
}
_unitOfWorkManage.BeginTran();
_outboundRepository.OutboundOrderDetailRepository.DeleteAndMoveIntoHty(outboundOrderDetails, OperateType.浜哄伐鍙栨秷);
--
Gitblit v1.9.3