sdk:修复登录接口

This commit is contained in:
luying
2021-11-12 16:10:20 +08:00
parent 3a45e8457f
commit c62cd91a10
9 changed files with 38 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ export async function httpRequest(url: string, method: string, body: any, header
url,
method,
headers,
body,
body: JSON.stringify(body),
timeout,
JSON: true
}
@@ -152,7 +152,7 @@ export async function vidHttpRequest(addr: string, body: any) {
export async function request37(url: string, body: any, key: string) {
body['sign'] = get37Md5Sign(body, key);
let result = await httpRequest(url, HTTP_METHOD.POST, body, {});
let result = await httpRequestForm(url, HTTP_METHOD.POST, body, 1000);
console.log('******result', result)
return result;
}