This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增
全部新碟
,数字专辑-新碟上架
,数字专辑&数字单曲-榜单
,数字专辑-语种风格馆
,数字专辑详情
接口,更新新碟上架
接…
…口,修改传入参数,返回数据结构有变化
- Loading branch information
Showing
10 changed files
with
173 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// 数字专辑详情 | ||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/vipmall/albumproduct/detail`, data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// 数字专辑-新碟上架 | ||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 30, | ||
offset: query.offset || 0, | ||
total: true, | ||
area: query.area || 'ALL', //ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本 | ||
type: query.type | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/vipmall/albumproduct/list`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// 数字专辑-语种风格馆 | ||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 10, | ||
offset: query.offset || 0, | ||
total: true, | ||
area: query.area || 'Z_H', //Z_H:华语,E_A:欧美,KR:韩国,JP:日本 | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/vipmall/appalbum/album/style`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// 全部新碟 | ||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 30, | ||
offset: query.offset || 0, | ||
total: true, | ||
area: query.area || 'ALL' //ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本 | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/album/new`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
// 新碟上架 | ||
|
||
module.exports = (query, request) => { | ||
const date = new Date() | ||
|
||
const data = { | ||
area: query.type || 'ALL', // ALL,ZH,EA,KR,JP | ||
area: query.area || 'ALL', // //ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本 | ||
limit: query.limit || 50, | ||
offset: query.offset || 0, | ||
total: true | ||
type: query.type || 'new', | ||
year: query.year || date.getFullYear(), | ||
month: query.month || date.getMonth() + 1, | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/album/new`, data, | ||
'POST', `https://music.163.com/api/discovery/new/albums/area`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters