Skip to content

Commit

Permalink
fix:修复了“粉丝墙获取失败”bug
Browse files Browse the repository at this point in the history
  • Loading branch information
15619 committed Jan 1, 2022
1 parent f6510c9 commit 5948ba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions B站直播间挂机助手.js
Original file line number Diff line number Diff line change
Expand Up @@ -6369,8 +6369,8 @@
await BAPI.i.medal(page).then((response) => {
MYDEBUG('before init() getMedalList: API.i.medal', response);
if (response.code === 0) {
medal_info.medal_list = medal_info.medal_list.concat(response.data.fansMedalList);
if (response.data.pageinfo.curPage < response.data.pageinfo.totalpages) page++;
medal_info.medal_list = medal_info.medal_list.concat(response.data.items);
if (response.data.page_info.cur_page < response.data.page_info.total_page) page++;
else { medal_info.status.resolve(); end = true }
} else if (response.code === 1024) {
window.toast(`获取粉丝勋章列表超时 ${response.message} 部分功能将无法正常运行`, 'error');
Expand Down
4 changes: 2 additions & 2 deletions assets/js/library/BilibiliAPI_Mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ var BAPI = {
medal: (page = 1, pageSize = 10) => {
// 获取勋章列表信息
return BAPI.ajax({
url: 'i/api/medal',
url: 'xlive/app-ucenter/v1/user/GetMyMedals',
data: {
page: page,
pageSize: pageSize
page_size: pageSize
}
});
},
Expand Down

0 comments on commit 5948ba9

Please sign in to comment.