20220505 考勤导入功能优化,新增版本号显示。 考试计划详细页新增单独获取考生姓名接口。优化接口请求方法,请求超时时间设置5秒,防止长期占有程序池连接。
This commit is contained in:
@@ -30,6 +30,7 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
request.Headers.Add("token", "AF17168B-87BD-4GLY-1111-F0A0A1158F9B");
|
||||
request.Timeout = 5000; /// 设置5秒超时
|
||||
if (!string.IsNullOrEmpty(data))
|
||||
{
|
||||
Stream RequestStream = request.GetRequestStream();
|
||||
@@ -93,6 +94,7 @@ namespace BLL
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
|
||||
request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;
|
||||
request.Timeout = 5000; /// 设置5秒超时
|
||||
if (header != null)
|
||||
{
|
||||
foreach (var i in header.Keys)
|
||||
@@ -161,6 +163,7 @@ namespace BLL
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
|
||||
request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;
|
||||
request.Timeout = 5000; /// 设置5秒超时
|
||||
if (header != null)
|
||||
{
|
||||
foreach (var i in header.Keys)
|
||||
|
||||
Reference in New Issue
Block a user