Skip to content

Commit

Permalink
fix(bilibili): fix user/video error, update account info api (DIYgod#…
Browse files Browse the repository at this point in the history
  • Loading branch information
curly210102 authored Apr 21, 2023
1 parent 564a514 commit 8dd0314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Session.vim
assets/build/
package-lock.json
pnpm-lock.yaml
.yarn
4 changes: 2 additions & 2 deletions lib/v2/bilibili/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
Cookie: cookie,
},
});
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/wbi/acc/info?mid=${uid}&token=&platform=web`, {
headers: {
Referer: `https://space.bilibili.com/${uid}/`,
Cookie: cookie,
Expand All @@ -73,7 +73,7 @@ module.exports = {
Cookie: cookie,
},
});
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/wbi/acc/info?mid=${uid}&token=&platform=web`, {
headers: {
Referer: `https://space.bilibili.com/${uid}/`,
Cookie: cookie,
Expand Down

0 comments on commit 8dd0314

Please sign in to comment.