接口请求体属性名小写

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
+4
View File
@@ -45,6 +45,10 @@
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.9" newVersion="10.0.0.9" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+5 -5
View File
@@ -13,11 +13,11 @@ TCP_IP=192.168.2.253
TCP_Port=1030
[MES配置]
siteCode=18J
lineCode=18J-BZ-181
equipCode=EVEDL18BZWGJ02
materialCode=81035332
productType=test
siteCode=17J
lineCode=PW-174
equipCode=174VIM02
materialCode=
productType=LF324
GradingMesUrl=http://10.22.167.141/core/api/public/eve/pm/eqm/new/grading
ResultProcessMesUrl=http://10.22.167.2/core/api/public/product/process/param/new/result
StationArrivalUrl=http://10.22.167.2/core/api/public/formation/section/arrival/bz
+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(