20220516 实名制定时器优化、考勤导入、考试接口调整
This commit is contained in:
@@ -30,7 +30,7 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
request.Headers.Add("token", "AF17168B-87BD-4GLY-1111-F0A0A1158F9B");
|
||||
request.Timeout = 5000; /// 设置5秒超时
|
||||
request.Timeout = 20000; /// 设置5秒超时
|
||||
if (!string.IsNullOrEmpty(data))
|
||||
{
|
||||
Stream RequestStream = request.GetRequestStream();
|
||||
@@ -93,8 +93,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秒超时
|
||||
request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;
|
||||
if (header != null)
|
||||
{
|
||||
foreach (var i in header.Keys)
|
||||
@@ -163,7 +162,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秒超时
|
||||
request.Timeout = 20000; /// 设置5秒超时
|
||||
if (header != null)
|
||||
{
|
||||
foreach (var i in header.Keys)
|
||||
|
||||
Reference in New Issue
Block a user