From 4cfeced9bc8985cdd89fdb540e6fe984f8469481 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期四, 21 十一月 2024 11:02:40 +0800
Subject: [PATCH] 1

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs |   36 +++++++++++++++++++++++++++++-------
 1 files changed, 29 insertions(+), 7 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
index f4f4044..44c88b8 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
@@ -46,9 +46,7 @@
 using WIDESEAWCS_ITaskInfoRepository;
 using WIDESEAWCS_ITaskInfoService;
 using WIDESEAWCS_Model.Models;
-using WIDESEAWCS_QuartzJob;
-using WIDESEAWCS_QuartzJob.Models;
-using WIDESEAWCS_QuartzJob.Service;
+
 
 namespace WIDESEAWCS_TaskInfoService
 {
@@ -181,14 +179,38 @@
         /// <returns></returns>
         public WebResponseContent ToPlatform(string palletCode)
         {
-            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                WebResponseContent content = new WebResponseContent();
+                GenerateInv generate = new GenerateInv()
+                {
+                    SourceAddress = "",
+                    PalletCode = palletCode
+                };
+
+                return content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate);
+            }
+            catch (Exception ex)
+            {
+
+                throw;
+            }
+
+            /*WebResponseContent content = new WebResponseContent();
             GenerateInv generate = new GenerateInv()
             {
-                SourceAddress ="",
+                SourceAddress = "",
                 PalletCode = palletCode
             };
-            
-            return content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate);
+            content = HttpHelper.Post<WebResponseContent>($"{urlQueryinventory}", generate);
+            if (content != null)
+            {
+                if (content.Status)
+                {
+                    return content;
+                }
+            }
+            return content = WebResponseContent.Instance.Error();*/
         }
 
         /// <summary>

--
Gitblit v1.9.3