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:
+10
-8
@@ -1,16 +1,18 @@
|
||||
// 新晋电台榜/热门电台榜
|
||||
const typeMap = {
|
||||
'new': 0,
|
||||
'hot': 1
|
||||
new: 0,
|
||||
hot: 1,
|
||||
}
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0,
|
||||
type: typeMap[query.type || 'new'] || '0' //0为新晋,1为热门
|
||||
type: typeMap[query.type || 'new'] || '0', //0为新晋,1为热门
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/api/djradio/toplist`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
return request('POST', `https://music.163.com/api/djradio/toplist`, data, {
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user