From 3c7658b4fff5cfba50105357eb3723dcbcea5c6a Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 27 十二月 2024 18:38:24 +0800 Subject: [PATCH] AGV接口逻辑 --- 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/InvokeAGVService.cs | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 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 5f367e3..129ec17 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.19: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.19: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); } @@ -84,7 +84,6 @@ /// <returns></returns> public AgvResponseContent AgvUpdateTask(AgvUpdateDTO agvUpdateModel) { - return new AgvResponseContent(); } } -- Gitblit v1.9.3