mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
Merge branch 'VoiceTop' into 'main'
添加电台排行榜获取接口 See merge request Binaryify/neteasecloudmusicapi!5
This commit is contained in:
commit
683b470ac0
20
module/voice_top.js
Normal file
20
module/voice_top.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
//电台排行榜获取
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
djRadioId: query.djRadioId || null, // 电台id
|
||||||
|
sortIndex: query.sortIndex || 1, // 排序 1:播放数 2:点赞数 3:评论数 4:分享数 5:收藏数
|
||||||
|
dataGapDays: query.dataGapDays || 7, // 天数 7:一周 30:一个月 90:三个月
|
||||||
|
dataType: query.dataType || 3, // 未知
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
'https://interface.music.163.com/weapi/expert/worksdata/works/top/get',
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user