网络超时改成30秒

This commit is contained in:
guoshengxiong 2024-05-19 10:52:44 +08:00
parent d8bf23e115
commit 46190f5939
2 changed files with 1 additions and 2 deletions

View File

@ -276,7 +276,7 @@ public class HikVideoUtil {
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.setQuerys(querys);
request.setStringBody(body);

View File

@ -28,7 +28,6 @@ public class HikvisionUtil {
Map<String, String> headers = new HashMap();
headers.put("Accept", "*/*");
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.setHeaders(headers);
request.setQuerys(querys);