From 3e778155459a2d5a2f0214f57ff83c3760ed8381 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 10 二月 2025 14:36:43 +0800
Subject: [PATCH] 添加WMSapi接口调用接口日志记录、添加WMSswagger访问接口账号密码、添加WMS到期时间6-30

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/PartialTaskService_Line.cs |   41 +++++------------------------------------
 1 files changed, 5 insertions(+), 36 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/PartialTaskService_Line.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/PartialTaskService_Line.cs"
index 34617b2..9ff138c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/PartialTaskService_Line.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/PartialTaskService_Line.cs"
@@ -24,45 +24,14 @@
         public WebResponseContent RequestWMSTask(ConveyorLineDTO lineDTO)
         {
             WebResponseContent content = new WebResponseContent();
-            try
-            {
-                #region 鍚慦MS鐢宠
-                var ResultData = HttpHelper.PostAsync(WMSInterfaceAddress.ConveyorLineRequestInbound, lineDTO.ToJson(), headers: new Dictionary<string, string>());
-                if (ResultData.Result == null) throw new Exception($"鍚慦MS璇锋眰鍏ュ簱瓒呮椂");
 
-                content = JsonConvert.DeserializeObject<WebResponseContent>(ResultData.Result);
+            #region 鍚慦MS鐢宠
+            var ResultData = HttpHelper.PostAsync(WMSInterfaceAddress.ConveyorLineRequestInbound, lineDTO.ToJson(), headers: new Dictionary<string, string>());
+            if (ResultData.Result == null) throw new Exception($"鍚慦MS璇锋眰鍏ュ簱瓒呮椂");
 
-                #endregion
+            return JsonConvert.DeserializeObject<WebResponseContent>(ResultData.Result);
 
-                #region 浜х嚎鐢宠鍏ュ簱浠诲姟
-                if (content != null && content.Status)//浠诲姟杞崲
-                {
-                    var task = JsonConvert.DeserializeObject<Dt_Task>(content.Data.ToJson());
-                    if (task != null)
-                    {
-                        List<int> TaskNums = new List<int>();
-                        List<Dt_Router> routers = _routerService.QueryNextRoutes(task.CurrentAddress, task.TargetAddress);
-                        if (routers.Count > 0)
-                        {
-                            task.NextAddress = routers.FirstOrDefault().ChildPosi;
-                        }
-                        task.WMSId = task.TaskId;
-                        task.Creater = "WMS";
-                        task.Dispatchertime = null;
-                        task.CreateDate = DateTime.Now;
-                        BaseDal.AddData(task);
-                        TaskNums.Add(task.TaskNum);
-                        _taskExecuteDetailService.AddTaskExecuteDetail(TaskNums, "鎺ユ敹WMS浠诲姟");
-                    }
-                }
-                #endregion
-
-            }
-            catch (Exception ex)
-            {
-                content = WebResponseContent.Instance.Error(ex.Message);
-            }
-            return content;
+            #endregion
         }
 
         /// <summary>

--
Gitblit v1.9.3