接口请求体属性名小写

This commit is contained in:
liming 蔡
2026-07-16 20:25:59 +08:00
parent aa454c63cc
commit 682de34ff5
7 changed files with 62 additions and 12 deletions
+8 -7
View File
@@ -6,6 +6,7 @@ using JY.MES.MES;
using JY.Model;
using JY.Utility;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -91,7 +92,7 @@ namespace JY.Inspection.Mes
materiallotCodeList = new List<string>() { BarCode }
};
string p = JsonConvert.SerializeObject(gradingParam);
string p = JsonHelper.Serialize(gradingParam);
var sw = new Stopwatch();
sw.Start();
@@ -219,8 +220,8 @@ namespace JY.Inspection.Mes
//多个
pl.tagDataVOList = tdvls;
prp.payload = JsonConvert.SerializeObject(pl);
string p = JsonConvert.SerializeObject(prp);
prp.payload = JsonHelper.Serialize(pl);
string p = JsonHelper.Serialize(prp);
var sw = new Stopwatch();
sw.Start();
@@ -262,7 +263,7 @@ namespace JY.Inspection.Mes
try
{
string reqJsonStr = JsonConvert.SerializeObject(req);
string reqJsonStr = JsonHelper.Serialize(req);
var sw = new Stopwatch();
sw.Start();
string mesRes = MESApiHelper.HttpPostJsonAPI(
@@ -298,7 +299,7 @@ namespace JY.Inspection.Mes
try
{
string reqJsonStr = JsonConvert.SerializeObject(req);
string reqJsonStr = JsonHelper.Serialize(req);
var sw = new Stopwatch();
sw.Start();
string mesRes = MESApiHelper.HttpPostJsonAPI(
@@ -310,7 +311,7 @@ namespace JY.Inspection.Mes
resp = JsonConvert.DeserializeObject<RespExitStation>(mesRes);
new MesLog().LogArrivalStation(currentTime, reqJsonStr, mesRes, sw.ElapsedMilliseconds);
new MesLog().LogExitStation(currentTime, reqJsonStr, mesRes, sw.ElapsedMilliseconds);
}
catch (Exception ex)
{
@@ -335,7 +336,7 @@ namespace JY.Inspection.Mes
try
{
string reqJsonStr = JsonConvert.SerializeObject(req);
string reqJsonStr = JsonHelper.Serialize(req);
var sw = new Stopwatch();
sw.Start();
string mesRes = MESApiHelper.HttpPostJsonAPI(