mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
// 新晋电台榜/热门电台榜
|
|
const typeMap = {
|
|
new: 0,
|
|
hot: 1,
|
|
}
|
|
const createOption = require('../util/option.js')
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
limit: query.limit || 100,
|
|
offset: query.offset || 0,
|
|
type: typeMap[query.type || 'new'] || '0', //0为新晋,1为热门
|
|
}
|
|
return request(
|
|
'POST',
|
|
`/api/djradio/toplist`,
|
|
data,
|
|
createOption(query, 'weapi'),
|
|
)
|
|
}
|