This commit is contained in:
jl
2024-12-03 10:55:54 +08:00
parent 7bdb8633db
commit a867e6244c
8 changed files with 325 additions and 37 deletions

View File

@ -1,4 +1,5 @@
using Epost.Model;
using NPOI.POIFS.Crypt.Dsig;
using System;
using System.Collections.Generic;
using System.Configuration;
@ -10,7 +11,7 @@ namespace Epost.Common
{
public class AgvHelper
{
string agvUrl = ConfigurationManager.AppSettings["agvUrl"];
string agvSchedulingTaskUrl = ConfigurationManager.AppSettings["agvSchedulingTaskUrl"];
HttpHelper http = new HttpHelper();
#region
public AgvResultModel genAgvSchedulingTask(AgvSchedulingTaskModel model)
@ -22,7 +23,7 @@ namespace Epost.Common
string postData = JsonHelper.SerializeObject(model);
LogHelper.WriteLogInfo("调用AGV生成任务单接口请求参数" + postData, LogHelper.Log_Type.INFO);
string res = http.HttpPost_Old(agvUrl, postData);
string res = http.HttpPost_Old(agvSchedulingTaskUrl, postData);
LogHelper.WriteLogInfo("调用AGV生成任务单接口返回" + res, LogHelper.Log_Type.INFO);
if (!string.IsNullOrEmpty(res))
{
@ -41,7 +42,8 @@ namespace Epost.Common
{
LogHelper.WriteLogInfo("调用AGV生成任务单接口返回失败", LogHelper.Log_Type.ERROR);
}
string resinfo = JsonHelper.SerializeObject(resmodel);
return resmodel;
}
catch (Exception ex)