mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 01:12:06 +08:00
refactor: 进一步封装option
This commit is contained in:
@ -6,11 +6,10 @@ module.exports = (query, request) => {
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0,
|
||||
}
|
||||
return request('POST', `https://music.163.com/api/program/toplist/v1`, data, {
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
ua: query.ua || '',
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
})
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/program/toplist/v1`,
|
||||
data,
|
||||
createOption(query, 'weapi'),
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user