新增全部新碟,数字专辑-新碟上架,数字专辑&数字单曲-榜单,数字专辑-语种风格馆,数字专辑详情接口,更新新碟上架接口,修改传入参数,返回数据结构有变化

This commit is contained in:
binaryify
2020-07-26 16:45:56 +08:00
parent feefa9fc47
commit 0ad746dad4
10 changed files with 173 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
// 数字专辑&数字单曲-榜单
module.exports = (query, request) => {
let data = {
albumType: query.albumType || 0, //0为数字专辑,1为数字单曲
}
const type = query.type || 'daily' // daily,week,year,total
if (type === 'year') {
data = {
...data,
year: query.year,
}
}
return request(
'POST',
`https://music.163.com/api/feealbum/songsaleboard/${type}/type`,
data,
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
)
}