聊天:添加屏蔽
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user