修复下载信息,清除部分日志

This commit is contained in:
2025-08-27 08:40:11 +08:00
parent 160339dfb5
commit a1e46c4d76
5 changed files with 29 additions and 128 deletions
-7
View File
@@ -124,23 +124,16 @@ class PixivAuth {
include_policy: true
};
console.log('请求数据:', data);
const headers = {
...this.getDefaultHeaders(),
'Content-Type': 'application/x-www-form-urlencoded'
};
console.log('请求头部:', headers);
const response = await this.axiosInstance.post('https://oauth.secure.pixiv.net/auth/token',
stringify(data),
{ headers }
);
console.log('响应状态:', response.status);
console.log('响应数据:', JSON.stringify(response.data, null, 2));
const tokenData = response.data.response;
this.accessToken = tokenData.access_token;