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
binaryify
committed
Oct 21, 2018
1 parent
2a25ea9
commit 5053fca
Showing
4 changed files
with
90 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
// 新歌速递 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
areaId: query.type || 0, // 全部:0 华语:7 欧美:96 日本:8 韩国:16 | ||
limit: query.limit || 100, | ||
offset: query.offset || 0, | ||
total: true | ||
} | ||
return request( | ||
'POST', `http://music.163.com/weapi/v1/discovery/new/songs`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
const data = { | ||
areaId: query.type || 0, // 全部:0 华语:7 欧美:96 日本:8 韩国:16 | ||
limit: query.limit || 100, | ||
offset: query.offset || 0, | ||
total: true | ||
} | ||
return request( | ||
'POST', | ||
`http://music.163.com/weapi/v1/discovery/new/songs`, | ||
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