MES对接

This commit is contained in:
a88359121
2025-07-28 11:12:06 +08:00
parent 3b8de36d39
commit c45e3622af
13 changed files with 41 additions and 41 deletions
+2 -1
View File
@@ -32,10 +32,11 @@ namespace JinYuan.MES
try
{
StringContent stringContent = new StringContent(strJosnData, Encoding.UTF8, "application/json");
return new HttpClient()
string ResponseMessage= new HttpClient()
{
Timeout = TimeSpan.FromSeconds(6.0)
}.PostAsync(url, (HttpContent)stringContent).Result.Content.ReadAsStringAsync().Result;
return ResponseMessage;
}
catch (Exception ex)
{