This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user