mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 03:22:08 +08:00
更新文档,更新eslint
This commit is contained in:
@ -2,16 +2,11 @@
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
cat: query.type,
|
||||
cateId: query.type,
|
||||
type: query.type,
|
||||
categoryId: query.type,
|
||||
category: query.type,
|
||||
limit: query.limit,
|
||||
offset: query.offset
|
||||
limit: query.limit || 30,
|
||||
offset: query.offset || 0
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/djradio/hot/v1`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user