mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-03 14:03:35 +08:00
25 lines
549 B
JavaScript
25 lines
549 B
JavaScript
// 数字专辑&数字单曲-榜单
|
|
module.exports = (query, request) => {
|
|
let data = {
|
|
albumType: query.albumType || 0, //0为数字专辑,1为数字单曲
|
|
}
|
|
const type = query.type || 'daily' // daily,week,year,total
|
|
if (type === 'year') {
|
|
data = {
|
|
...data,
|
|
year: query.year,
|
|
}
|
|
}
|
|
return request(
|
|
'POST',
|
|
`https://music.163.com/api/feealbum/songsaleboard/${type}/type`,
|
|
data,
|
|
{
|
|
crypto: 'weapi',
|
|
cookie: query.cookie,
|
|
proxy: query.proxy,
|
|
realIP: query.realIP,
|
|
},
|
|
)
|
|
}
|