海康人员授权参数调整
This commit is contained in:
parent
9733e8dd79
commit
9b636860fb
@ -70,6 +70,9 @@ public class HikvisionUtil {
|
|||||||
Map<String, String> headers = new HashMap<>(16);
|
Map<String, String> headers = new HashMap<>(16);
|
||||||
headers.put("Accept", "*/*");
|
headers.put("Accept", "*/*");
|
||||||
headers.put("Content-Type", "application/json");
|
headers.put("Content-Type", "application/json");
|
||||||
|
if (path.equals("/artemis/api/acps/v1/auth_config/add")) {
|
||||||
|
headers.put("tagId", "acs");
|
||||||
|
}
|
||||||
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