lss
3 天以前 9cba325e0d7c30644606e63e5df01faba0c42038
HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/api/AgvController.cs
@@ -1,4 +1,5 @@
using HH.WCS.JiaTong.core;
using HH.WCS.JiaTong.device;
using HH.WCS.JiaTong.dispatch;
using HH.WCS.JiaTong.process;
using HH.WCS.JiaTong.util;
@@ -6,7 +7,10 @@
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Services.Description;
using static HH.WCS.JiaTong.api.ApiModel;
namespace HH.WCS.JiaTong.api
@@ -24,7 +28,8 @@
        /// <returns></returns>
        [HttpPost]
        //[Route("AGVCallbackState")]
        public ReturnResult AGVCallbackState(AgvTaskState model) {
        public ReturnResult AGVCallbackState(AgvTaskState model)
        {
            try
            {
                LogHelper.Info("AGVCallbackState Request:" + JsonConvert.SerializeObject(model), "HosttoagvTask");
@@ -48,7 +53,8 @@
        /// <returns></returns>
        [HttpPost]
        //[Route("AGVCallbackEvent")]
        public ReturnResult AGVCallbackEvent(AgvEventInfo model) {
        public ReturnResult AGVCallbackEvent(AgvEventInfo model)
        {
            LogHelper.Info("AGVCallbackEvent Request:" + JsonConvert.SerializeObject(model), "HosttoagvTask");
            return new ReturnResult();
        }
@@ -60,7 +66,8 @@
        /// <returns></returns>
        [HttpPost]
        //[Route("AGVDeviceReceive")]
        public ReturnResult AGVDeviceReceive(List<AgvDeviceStatus> models) {
        public ReturnResult AGVDeviceReceive(List<AgvDeviceStatus> models)
        {
            LogHelper.Info("AGVDeviceReceive Request:" + JsonConvert.SerializeObject(models), "HosttoagvCar");
            models.ForEach(a =>