首检添加数据看板

This commit is contained in:
2024-06-07 11:04:26 +08:00
parent c93711290e
commit 769d2da1e0
344 changed files with 1772 additions and 2526 deletions

View File

@@ -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;
}