新增获取客户端歌曲下载url接口

This commit is contained in:
lz已经是条咸鱼了
2021-11-06 21:38:55 +08:00
parent 9e9c77541a
commit 793c276e4e
3 changed files with 32 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
// 获取客户端歌曲下载链接
module.exports = (query, request) => {
const data = {
id: query.id,
br: parseInt(query.br || 999000),
}
return request(
'POST',
`https://interface.music.163.com/eapi/song/enhance/download/url`,
data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
url: '/api/song/enhance/download/url',
},
)
}