kazelee
2 天以前 6d2faa6e299bdfe545ee339269e64f2900229147
api/AgvController.cs
@@ -1,18 +1,23 @@
using HH.WCS.Mobox3.AnGang.core;
using HH.WCS.Mobox3.AnGang.dispatch;
using HH.WCS.Mobox3.AnGang.process;
using HH.WCS.Mobox3.AnGang.wms;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Reflection;
using System.Web.Http;
using static HH.WCS.Mobox3.AnGang.dispatch.NDC;
using System.Collections.Generic;
using System.Linq;
using HH.WCS.Mobox3.AnGang.util;
using static HH.WCS.Mobox3.AnGang.api.ApiModel;
using System.Net;
using System.Reflection;
using System.Text;
using System.Web;
using System.Web.Http;
using HH.WCS.Mobox3.AnGang.core;
using HH.WCS.Mobox3.AnGang.dispatch;
using HH.WCS.Mobox3.AnGang.process;
using HH.WCS.Mobox3.AnGang.util;
using HH.WCS.Mobox3.AnGang.wms;
using NetSDKCS;
using Newtonsoft.Json;
using static HH.WCS.Mobox3.AnGang.api.ApiModel;
using static HH.WCS.Mobox3.AnGang.dispatch.NDC;
namespace HH.WCS.Mobox3.AnGang.api
{
@@ -33,7 +38,30 @@
            //LogRequestHeaders();
            return GZRobot.orderStatusReport(model);
        }
        [HttpPost]
        [Route("agvRealtimeStateReport")]
        public IHttpActionResult agvRealtimeStateReport(agvRealtimeStateReportInfo model) {
            LogHelper.Info("agvRealtimeStateReport:RCS国自AGV实时状态回报:" + JsonConvert.SerializeObject(model), "HosttoagvTask");
            var res = WCSCore.agvRealtimeStateReport(model);
            //if (res == "offline") {
            //    //return NotFound(new EmptyGzResult());
            //    return NotFound();
            //}
            //else {
            //    //return Ok(new EmptyGzResult());
            //    return Ok();
            //}
            if (model == null) return NotFound();
            if (string.IsNullOrEmpty(res)) {
                return BadRequest();
            }
            else {
                return Ok();
            }
        }
        /// <summary>
        /// AGV 与产线进行安全交互
        /// </summary>