From f1ac46a6f6f19e746c170ae35319230e7192a815 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 18 十二月 2025 19:08:27 +0800
Subject: [PATCH] 1

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
index a1ea0b2..922cf88 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
@@ -362,7 +362,7 @@
 
                             //var feedbackresult = await _invokeMESService.FeedbackAllocate(allocatefeedmodel);
 
-                            var response = responseModel(inboundOrder, 3, "http://127.0.0.1:450/api/AldAllocationOperation/AllocationOperation", null, allocatefeedmodel);
+                            var response = responseModel(inboundOrder, 3, null, allocatefeedmodel);
                             if (response != null && response.IsSuccess)
                             {
                                 _inboundOrderService.Db.Updateable<Dt_InboundOrder>().SetColumns(it => new Dt_InboundOrder { ReturnToMESStatus = 1 })
@@ -468,7 +468,7 @@
 
                             //var feedbackresult = await _invokeMESService.FeedbackInbound(feedmodel);
 
-                            var response= responseModel(inboundOrder,2, "http://127.0.0.1:450/api/AldMaterialWarehousing/MaterialWarehousing", feedmodel);
+                            var response= responseModel(inboundOrder,2, feedmodel);
 
                             if (response != null && response.IsSuccess)
                             {
@@ -497,24 +497,24 @@
             return WebResponseContent.Instance.OK();
         }
 
-        public HttpResponseResult<MesResponseDTO> responseModel(Dt_InboundOrder order, int InterfaceType, string url, FeedbackInboundRequestModel model = null, AllocateDto allocateDto = null)
+        public HttpResponseResult<MesResponseDTO> responseModel(Dt_InboundOrder order, int InterfaceType, FeedbackInboundRequestModel model = null, AllocateDto allocateDto = null)
         {
             HttpResponseResult<MesResponseDTO> httpResponseResult = new HttpResponseResult<MesResponseDTO>();
             string reqCode = Guid.NewGuid().ToString();
             string reqTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             string requestData = string.Empty;
-            //string apiUrl = AppSettings.GetValue("AllocationFeedbackUrl");
-            //string apiUrl = "http://127.0.0.1:450/api/AldMaterialWarehousing/MaterialWarehousing";
-            string apiUrl = url;
+            string apiUrl = string.Empty;            
             if (model != null)
             {
+                apiUrl = AppSettings.GetValue("AldMaterialWarehousing");
                 httpResponseResult = _httpClientHelper.Post<MesResponseDTO>(apiUrl, model.Serialize());
                 requestData = model.Serialize();
             }
             else
             {
+                apiUrl = AppSettings.GetValue("AldAllocationOperation");
                 httpResponseResult = _httpClientHelper.Post<MesResponseDTO>(apiUrl, allocateDto.Serialize());
-                requestData = allocateDto.Serialize();
+                requestData = allocateDto.Serialize(); 
             }
             httpResponseResult.ApiUrl = apiUrl;
             bool isSuccess = httpResponseResult.IsSuccess && httpResponseResult.Data.Code == "200";

--
Gitblit v1.9.3