feat: realIP option

This commit is contained in:
a632079
2020-08-05 02:07:37 +08:00
parent 31d7e3941e
commit 9bd30a0ffb
178 changed files with 1734 additions and 906 deletions

View File

@ -1,14 +1,17 @@
// 首页轮播图
module.exports = (query, request) => {
const type = {
0: 'pc',
1: 'android',
2: 'iphone',
3: 'ipad'
}[query.type || 0] || 'pc';
const type =
{
0: 'pc',
1: 'android',
2: 'iphone',
3: 'ipad',
}[query.type || 0] || 'pc'
return request(
'POST', `https://music.163.com/api/v2/banner/get`, {clientType: type},
{crypto: 'linuxapi', proxy: query.proxy}
'POST',
`https://music.163.com/api/v2/banner/get`,
{ clientType: type },
{ crypto: 'linuxapi', proxy: query.proxy, realIP: query.realIP }
)
}
}