From 88d52606d0db8fb0343ebcd2d53c8df62fd05f2a Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期六, 28 十二月 2024 23:39:46 +0800
Subject: [PATCH] 1

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs"
index 18b5cc0..6f5ab5c 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs"
@@ -6,6 +6,7 @@
 using System.Threading.Tasks;
 using WIDESEA_DTO.Agv;
 using WIDESEAWCS_Common.APIEnum;
+using WIDESEAWCS_Common.TaskEnum;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.Helper;
 
@@ -23,12 +24,12 @@
             WebResponseContent content = new WebResponseContent();
             try
             {
-                string apiAddress = AppSettings.Get(APIEnum.AgvSendTask.ToString());
+                string apiAddress = "http://10.30.4.29:8182/rcms/services/rest/hikRpcService/genAgvSchedulingTask";// AppSettings.Get(APIEnum.AgvSendTask.ToString());
                 string response = HttpHelper.Post(apiAddress, taskModel.Serialize());
                 AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>();
-                if (agvContent.Code == "200")
+                if (agvContent.Code == "0")
                 {
-                    content.OK(agvContent.Message);
+                    content.OK(data: agvContent.Data);
                 }
                 else
                 {
@@ -46,11 +47,10 @@
         /// </summary>
         public AgvResponseContent AgvSecureApply(AgvSecureApplyDTO secureApplyModel)
         {
-
             return new AgvResponseContent();
         }
         /// <summary>
-        /// 瀹夊叏淇″彿鍥炲 WCS-AGV
+        /// 瀹夊叏淇″彿鍥炲 WCS-AGV  //AGV浠诲姟缁х画鎵ц
         /// </summary>
         /// <param name="secureModel"></param>
         /// <returns></returns>
@@ -59,10 +59,10 @@
             WebResponseContent content = new WebResponseContent();
             try
             {
-                string apiAddress = AppSettings.Get(APIEnum.AgvSecureReply.ToString());
+                string apiAddress = "http://10.30.4.29:8182/rcms/services/rest/hikRpcService/continueTask";// AppSettings.Get(APIEnum.AgvSecureReply.ToString());
                 string response = HttpHelper.Post(apiAddress, secureReplyModel.Serialize());
                 AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>();
-                if (agvContent.Code == "200")
+                if (agvContent.Code == "0")
                 {
                     content.OK(agvContent.Message);
                 }
@@ -78,13 +78,12 @@
             return content;
         }
         /// <summary>
-        /// AGV浠诲姟鐘舵�佸埛鏂�
+        /// AGV浠诲姟鐘舵�佸埛鏂�/AGV浠诲姟瀹屾垚
         /// </summary>
         /// <param name="agvUpdateModel"></param>
         /// <returns></returns>
         public AgvResponseContent AgvUpdateTask(AgvUpdateDTO agvUpdateModel)
         {
-
             return new AgvResponseContent();
         }
     }

--
Gitblit v1.9.3