mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-23 16:11:24 +08:00
@@ -0,0 +1,14 @@
|
||||
// 新晋电台榜/热门电台榜
|
||||
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(`/api/djradio/toplist`, data, createOption(query, 'weapi'))
|
||||
}
|
||||
Reference in New Issue
Block a user