IP和路径增加了可配置
This commit is contained in:
@@ -3,6 +3,7 @@ using Newtonsoft.Json;
|
||||
using NLog;
|
||||
using RestSharp;
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -49,7 +50,13 @@ namespace MoviconHub.App.Services
|
||||
{
|
||||
try
|
||||
{
|
||||
var request = new RestRequest("/mes/order/iotPartInfo/getPartInfo", Method.Get);
|
||||
string resource = ConfigurationManager.AppSettings["ApiGetPartInfoPath"];
|
||||
if (string.IsNullOrWhiteSpace(resource))
|
||||
{
|
||||
resource = "/mes/order/iotPartInfo/getPartInfo";
|
||||
}
|
||||
|
||||
var request = new RestRequest(resource, Method.Get);
|
||||
request.AddParameter("PartQRCodeId", partQrCodeId);
|
||||
//request.AddParameter("DeviceCode", deviceCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user