Add SPSLogger
This commit is contained in:
@@ -854,6 +854,37 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
|
||||
return Request.CreateResponse(HttpStatusCode.ExpectationFailed, ex.ToString() + "<br >" + ex.InnerException.ToString());
|
||||
}
|
||||
}
|
||||
[Route("RepairMapKeySet")]
|
||||
public String RepairMapKeySet(String KeySetID = "2aece5d3-8acd-471c-a3d5-13e2866be441", string radio = "10402007187", string deviceID = "8SEN2024791544", string Order = "3232771")
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
//keysets
|
||||
var Url = $"{ServiceUrls.KeyServerCustom()}keysetkeys/";
|
||||
|
||||
|
||||
Url = "https://nodes.sms-esaap.com/keygenproxy/api/v2/keys";
|
||||
var header = new Dictionary<String, String>();
|
||||
header.Add("Cache-Control", "no-cache");
|
||||
header.Add("X-Node-Token", "d5b8c0b2-81f6-4421-80d0-44eb2093e616");
|
||||
|
||||
|
||||
|
||||
string postData = $"[{{\"KeyIndex\":\"{KeySetID}\", \"OrderNumber\":\"{Order}\", \"Device\":\"{deviceID}\", \"radioaddress\":\"{radio}\"}}]";
|
||||
|
||||
|
||||
|
||||
return LocalWebRequest.PostRequestAsyncAndGetContent(url: Url, header: header, json: postData, timeoutMs: 20000);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
return ex.Message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private String MapKeySet(String Token, String KeySetID, Int64 MeterOrderNumber, string MeterPassowrdIdent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user