mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
Merge branch 'main' of gitlab.com:Binaryify/neteasecloudmusicapi
This commit is contained in:
commit
da0f9f6fd7
17
module/voice_lyric.js
Normal file
17
module/voice_lyric.js
Normal file
@ -0,0 +1,17 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
programId: query.id,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi/voice/lyric/get?programId=${query.id}`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
url: '/api/voice/lyric/get',
|
||||
},
|
||||
)
|
||||
}
|
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