聊天:添加屏蔽

This commit is contained in:
luying
2021-11-10 17:28:11 +08:00
parent b15a9088e8
commit 32fe508625
16 changed files with 260 additions and 54 deletions

View File

@@ -28,7 +28,7 @@ export async function GTAuth() {
timestamp,
appkey: APP_KEY,
};
let result = await httpRequest(url, HTTP_METHOD.POST, headers, body)
let result = await httpRequest(url, HTTP_METHOD.POST, body, headers)
if (result.code == 0) {
console.log('GETUI_TOKEN', result.data.token)
return await ServerTempModel.updateGetuiData(result.data.token, result.data.expire_time);
@@ -151,7 +151,7 @@ export async function request(url: string, method: string, headers: any, body: a
}
headers = { ...headers, 'content-type': 'application/json;charset=utf-8', 'token': tokenData.getuiToken };
let result = await httpRequest(url, method, headers, body)
let result = await httpRequest(url, method, body, headers)
if (result.code == 10001) {
if (await GTAuth()) {
console.log('token success11')