mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): slice base64 string
This commit is contained in:
@@ -17,9 +17,11 @@ module.exports = async (ctx) => {
|
||||
// },
|
||||
// });
|
||||
const params = utils.addVerifyInfo(
|
||||
`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64')}&dm_cover_img_str=${Buffer.from(
|
||||
`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64').slice(0, -2)}&dm_cover_img_str=${Buffer.from(
|
||||
'no webgl'
|
||||
).toString('base64')}`,
|
||||
)
|
||||
.toString('base64')
|
||||
.slice(0, -2)}`,
|
||||
verifyString
|
||||
);
|
||||
const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, {
|
||||
|
||||
Reference in New Issue
Block a user