mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
33 lines
661 B
JavaScript
33 lines
661 B
JavaScript
// 歌手分类
|
|
|
|
/*
|
|
type 取值
|
|
1:男歌手
|
|
2:女歌手
|
|
3:乐队
|
|
|
|
area 取值
|
|
-1:全部
|
|
7华语
|
|
96欧美
|
|
8:日本
|
|
16韩国
|
|
0:其他
|
|
|
|
initial 取值 a-z/A-Z
|
|
*/
|
|
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
initial: isNaN(query.initial) ? (query.initial || '').toUpperCase().charCodeAt() || undefined : query.initial,
|
|
offset: query.offset || 0,
|
|
limit: query.limit || 30,
|
|
total: true,
|
|
type: query.type || '1',
|
|
area: query.area
|
|
}
|
|
return request(
|
|
'POST', `https://music.163.com/api/v1/artist/list`, data,
|
|
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
|
)
|
|
} |