bug修复和架构完善

This commit is contained in:
2025-08-21 11:50:25 +08:00
parent 29a79b1c6b
commit 6fc61ccbd4
22 changed files with 5511 additions and 770 deletions
+7 -1
View File
@@ -199,12 +199,18 @@ class PixivAuth {
this.accessToken = tokenData.access_token;
this.refreshToken = tokenData.refresh_token;
// 如果响应中包含用户信息,则保存
if (tokenData.user) {
this.user = tokenData.user;
}
console.log('刷新访问令牌成功');
return {
success: true,
access_token: tokenData.access_token,
refresh_token: tokenData.refresh_token
refresh_token: tokenData.refresh_token,
user: tokenData.user
};
} catch (error) {