From 60fb2fdfaddceda64b934b2167ca255f8c3579b8 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期一, 29 十二月 2025 09:49:34 +0800
Subject: [PATCH] 成品库入库

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