mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
feat: realIP option
This commit is contained in:
+15
-8
@@ -1,23 +1,30 @@
|
||||
// 排行榜
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
if(query.idx){
|
||||
return Promise.resolve( {
|
||||
if (query.idx) {
|
||||
return Promise.resolve({
|
||||
status: 500,
|
||||
body: {
|
||||
code: 500,
|
||||
msg: '不支持此方式调用,只支持id调用'
|
||||
}
|
||||
msg: '不支持此方式调用,只支持id调用',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const data = {
|
||||
id: query.id,
|
||||
n: '500',
|
||||
s: '0',
|
||||
}
|
||||
return request(
|
||||
'POST', `https://interface3.music.163.com/api/playlist/v4/detail`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
'POST',
|
||||
`https://interface3.music.163.com/api/playlist/v4/detail`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user