MES对接
This commit is contained in:
@@ -34,7 +34,7 @@ namespace JinYuan.MES
|
||||
StringContent stringContent = new StringContent(strJosnData, Encoding.UTF8, "application/json");
|
||||
string ResponseMessage= new HttpClient()
|
||||
{
|
||||
Timeout = TimeSpan.FromSeconds(6.0)
|
||||
Timeout = TimeSpan.FromSeconds(3.0)
|
||||
}.PostAsync(url, (HttpContent)stringContent).Result.Content.ReadAsStringAsync().Result;
|
||||
return ResponseMessage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user