mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
refactor: rename napi to netease_api
This commit is contained in:
parent
e030647720
commit
fe8b3261ca
228 changed files with 1 additions and 1 deletions
|
|
@ -1,27 +0,0 @@
|
|||
// 新碟上架
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const date = new Date();
|
||||
|
||||
const data = {
|
||||
area: query.area || 'ALL', // //ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本
|
||||
limit: query.limit || 50,
|
||||
offset: query.offset || 0,
|
||||
type: query.type || 'new',
|
||||
year: query.year || date.getFullYear(),
|
||||
month: query.month || date.getMonth() + 1,
|
||||
total: false,
|
||||
rcmd: true,
|
||||
};
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/discovery/new/albums/area`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue