mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 05:12:08 +08:00
28 lines
547 B
JavaScript
28 lines
547 B
JavaScript
// 排行榜
|
|
const createOption = require('../util/option.js')
|
|
module.exports = (query, request) => {
|
|
query.cookie.os = 'pc'
|
|
query.cookie.appver = '2.9.7'
|
|
if (query.idx) {
|
|
return Promise.resolve({
|
|
status: 500,
|
|
body: {
|
|
code: 500,
|
|
msg: '不支持此方式调用,只支持id调用',
|
|
},
|
|
})
|
|
}
|
|
|
|
const data = {
|
|
id: query.id,
|
|
n: '500',
|
|
s: '0',
|
|
}
|
|
return request(
|
|
'POST',
|
|
`https://interface3.music.163.com/api/playlist/v4/detail`,
|
|
data,
|
|
createOption(query, 'weapi'),
|
|
)
|
|
}
|