首检添加数据看板
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Infrastructure
|
||||
{
|
||||
ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true //忽略掉证书异常
|
||||
};
|
||||
|
||||
|
||||
using HttpClient client = new HttpClient(httpClientHandler);
|
||||
client.Timeout = new TimeSpan(0, 0, timeOut);
|
||||
if (headers != null)
|
||||
@@ -38,11 +38,12 @@ namespace Infrastructure
|
||||
try
|
||||
{
|
||||
response = client.PostAsync(url, httpContent).Result;
|
||||
}catch (Exception ex)
|
||||
{
|
||||
return "异常:"+ex.Message;
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "异常:" + ex.Message;
|
||||
}
|
||||
|
||||
return response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user