dengjunjie
2024-12-24 18d1f45193e34e00fc1b6f65b8596ddb29c5267d
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_External/AGVService/InvokeAGVService.cs
@@ -12,6 +12,7 @@
namespace WIDESEA_External.AGVService
{
    #region å¼ƒç”¨
    public class InvokeAGVService : IInvokeAGVService
    {
        public static IInvokeAGVService Intance
@@ -19,11 +20,11 @@
            get { return App.GetService<IInvokeAGVService>(); }
        }
        /// <summary>
        /// å‘送AGV任务
        /// å‘送AGV任务
        /// </summary>
        /// <param name="taskModel"></param>
        /// <returns></returns>
        public WebResponseContent SendAgvTask(AgvTaskModel taskModel)
        public WebResponseContent AgvSendTask(AgvTaskModel taskModel)
        {
            WebResponseContent content = new WebResponseContent();
            try
@@ -46,13 +47,26 @@
            }
            return content;
        }
        public WebResponseContent AGVSecureReply(AgvSecureModel secureModel)
        /// <summary>
        /// å®‰å…¨ä¿¡å·ç”³è¯· AGV-WMS-WCS
        /// </summary>
        public AgvResponseContent AgvSecureApply(AgvSecureApplyModel secureApplyModel)
        {
            return new AgvResponseContent();
        }
        /// <summary>
        /// å®‰å…¨ä¿¡å·å›žå¤ WMS-AGV
        /// </summary>
        /// <param name="secureModel"></param>
        /// <returns></returns>
        public WebResponseContent AgvSecureReply(AgvSecureReplyModel secureReplyModel)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                string apiAddress = AppSettings.Get(APIEnum.AGVSecureReply.ToString());
                string response = HttpHelper.Post(apiAddress, secureModel.Serialize());
                string apiAddress = AppSettings.Get(APIEnum.AgvSecureReply.ToString());
                string response = HttpHelper.Post(apiAddress, secureReplyModel.Serialize());
                AgvResponseContent agvContent = response.DeserializeObject<AgvResponseContent>();
                if (agvContent.Code == "200")
                {
@@ -69,5 +83,16 @@
            }
            return content;
        }
        /// <summary>
        /// AGV任务状态刷新
        /// </summary>
        /// <param name="agvUpdateModel"></param>
        /// <returns></returns>
        public AgvResponseContent AgvUpdateTask(AgvUpdateModel agvUpdateModel)
        {
            return new AgvResponseContent();
        }
    }
    #endregion
}