You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
364 B
18 lines
364 B
4 years ago
|
// 首页轮播图
|
||
|
|
||
|
module.exports = (query, request) => {
|
||
|
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, realIP: query.realIP },
|
||
|
);
|
||
|
};
|