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.
Merge pull request #1248 from chen310/master
增加已购单曲接口;mlog相关接口;vip相关接口
- Loading branch information
Showing
9 changed files
with
245 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 将mlog id转为video id | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
mlogId: query.id, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/mlog/video/convert/id`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,21 @@ | ||
// mlog链接 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id, | ||
resolution: query.res || 1080, | ||
type: 1, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/mlog/detail/v1`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,20 @@ | ||
// 已购单曲 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/single/mybought/song/list`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,17 @@ | ||
// 会员成长值 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growhpoint/basic`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,20 @@ | ||
// 会员成长值领取记录 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growth/details`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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) => { | ||
const data = { | ||
taskIds: query.id, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/reward/get`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,17 @@ | ||
// 会员任务 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/list`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
5494359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
netease-cloud-music-api-binaryify – ./
netease-cloud-music-api-binaryify-binaryify.vercel.app
netease-cloud-music-api-binaryify-git-master-binaryify.vercel.app
netease-cloud-music-api-binaryify.vercel.app
5494359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
netease-cloud-music-api – ./docs
neteasecloudmusicapi.vercel.app
netease-cloud-music-api-git-master-binaryify.vercel.app