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 #863 from greenhat616/master
feat: optional realIP
- Loading branch information
Showing
178 changed files
with
1,734 additions
and
906 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ node_modules | |
|
||
.idea/ | ||
package-lock.json | ||
yarn.lock | ||
|
||
.vscode |
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,17 @@ | ||
// 数字专辑详情 | ||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id | ||
id: query.id, | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/vipmall/albumproduct/detail`, data, | ||
'POST', | ||
`https://music.163.com/weapi/vipmall/albumproduct/detail`, | ||
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
// 专辑动态信息 | ||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id | ||
id: query.id, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/album/detail/dynamic`, | ||
data, | ||
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } | ||
{ | ||
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
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
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,13 +1,14 @@ | ||
// 收藏/取消收藏专辑 | ||
|
||
module.exports = (query, request) => { | ||
query.t = (query.t == 1 ? 'sub' : 'unsub') | ||
query.t = query.t == 1 ? 'sub' : 'unsub' | ||
const data = { | ||
id: query.id | ||
}; | ||
id: query.id, | ||
} | ||
return request('POST', `https://music.163.com/api/album/${query.t}`, data, { | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy | ||
}); | ||
}; | ||
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
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
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,13 +1,20 @@ | ||
// 收藏与取消收藏歌手 | ||
|
||
module.exports = (query, request) => { | ||
query.t = (query.t == 1 ? 'sub' : 'unsub') | ||
query.t = query.t == 1 ? 'sub' : 'unsub' | ||
const data = { | ||
artistId: query.id, | ||
artistIds: '[' + query.id + ']' | ||
artistIds: '[' + query.id + ']', | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/artist/${query.t}`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
'POST', | ||
`https://music.163.com/weapi/artist/${query.t}`, | ||
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
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,10 +1,12 @@ | ||
// 歌手热门 50 首歌曲 | ||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id | ||
id: query.id, | ||
} | ||
return request( | ||
'POST', `https://music.163.com/api/artist/top/song`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
return request('POST', `https://music.163.com/api/artist/top/song`, data, { | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}) | ||
} |
Oops, something went wrong.