using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Collections.Concurrent;
using Newtonsoft.Json.Linq;
using System.Threading;
using System.Net;
using System.Net.Http.Headers;
using System.IO;
using MisDataSaveDate;
using WebApi;
namespace MisDataSaveDate
{
///
/// AGV接口控制器
///
public class WebController : ApiController
{
readonly string headUrl = "/";
///
/// AGV请求进入接口(接收方)
/// 接收AGV的进入请求并存储到数据库
///
/// AGV请求数据
/// 处理结果
[HttpPost]
[Route("web/WEB_Request")]
public HttpResponseMessage WEB_Request([FromBody] JObject jobj)
{
return new HttpResponseMessage
{
Content = new StringContent(WEB_BusinessLogic.WEB_Request(headUrl + System.Reflection.MethodBase.GetCurrentMethod().Name, jobj), Encoding.GetEncoding("UTF-8"), "application/json")
};
}
///
/// AGV请求进入接口(接收方)
/// 接收AGV的进入请求并存储到数据库
///
/// AGV请求数据
/// 处理结果
[HttpPost]
[Route("web/WEB_SpotCheckResultUpload")]
public HttpResponseMessage WEB_SpotCheckResultUpload([FromBody] SpotCheckResult request)
{
var result = new MsgResHeader