This commit is contained in:
jl
2024-11-23 20:47:14 +08:00
parent 48afa11af7
commit 068fe0a148
11 changed files with 279 additions and 53 deletions

View File

@ -1,6 +1,7 @@
using Epost.Model;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@ -9,18 +10,19 @@ namespace Epost.Common
{
public class AgvHelper
{
string agvUrl = ConfigurationManager.AppSettings["agvUrl"];
HttpHelper http = new HttpHelper();
#region
public AgvResultModel genAgvSchedulingTask(AgvReqModel model)
public AgvResultModel genAgvSchedulingTask(AgvSchedulingTaskModel model)
{
string url = string.Empty;
AgvResultModel resmodel = new AgvResultModel();
try
{
{
string postData = JsonHelper.SerializeObject(model);
LogHelper.WriteLogInfo("调用AGV生成任务单接口请求参数" + postData, LogHelper.Log_Type.INFO);
string res = http.HttpPost_Old(url, postData);
string res = http.HttpPost_Old(agvUrl, postData);
LogHelper.WriteLogInfo("调用AGV生成任务单接口返回" + res, LogHelper.Log_Type.INFO);
if (!string.IsNullOrEmpty(res))
{