网络超时改成30秒
This commit is contained in:
parent
d8bf23e115
commit
46190f5939
@ -276,7 +276,7 @@ public class HikVideoUtil {
|
|||||||
headers.put("Content-Type", "application/text;charset=UTF-8");
|
headers.put("Content-Type", "application/text;charset=UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
Request request = new Request(Method.POST_STRING, httpSchema + host, path.get(httpSchema), appKey, appSecret, Constants.DEFAULT_TIMEOUT);
|
Request request = new Request(Method.POST_STRING, httpSchema + host, path.get(httpSchema), appKey, appSecret, Constants.DEFAULT_TIMEOUT * 30);
|
||||||
request.setHeaders(headers);
|
request.setHeaders(headers);
|
||||||
request.setQuerys(querys);
|
request.setQuerys(querys);
|
||||||
request.setStringBody(body);
|
request.setStringBody(body);
|
||||||
|
|||||||
@ -28,7 +28,6 @@ public class HikvisionUtil {
|
|||||||
Map<String, String> headers = new HashMap();
|
Map<String, String> headers = new HashMap();
|
||||||
headers.put("Accept", "*/*");
|
headers.put("Accept", "*/*");
|
||||||
headers.put("Content-Type", "application/json");
|
headers.put("Content-Type", "application/json");
|
||||||
//Request request = new Request(Method.POST_STRING, host, path, appKey, appSecret, Constants.DEFAULT_TIMEOUT);
|
|
||||||
Request request = new Request(Method.POST_STRING, host, path, appKey, appSecret, Constants.DEFAULT_TIMEOUT * 30);
|
Request request = new Request(Method.POST_STRING, host, path, appKey, appSecret, Constants.DEFAULT_TIMEOUT * 30);
|
||||||
request.setHeaders(headers);
|
request.setHeaders(headers);
|
||||||
request.setQuerys(querys);
|
request.setQuerys(querys);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user