更新文档,更新eslint

This commit is contained in:
binaryify
2019-08-20 23:07:01 +08:00
parent aed229e212
commit 83b6bfcd1e
4 changed files with 50 additions and 9 deletions

View File

@ -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 }
)
}