MES对接
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace JinYuan.MES
|
||||
equipNum = equipNum,
|
||||
userName = userName,
|
||||
passWord = passWord,
|
||||
userCardID = UserCardID
|
||||
userCardID =null// UserCardID
|
||||
};
|
||||
|
||||
var nowDate = DateTime.Now;
|
||||
|
||||
Reference in New Issue
Block a user