Skip to content

Commit

Permalink
增加用户相关接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Sep 30, 2020
1 parent 123e137 commit 3b94c7a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
16 changes: 16 additions & 0 deletions module/user_binding.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = (query, request) => {
const data = {

}
return request(
'POST',
`https://music.163.com/api/v1/user/bindings/${query.uid}`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
19 changes: 19 additions & 0 deletions module/user_replacephone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = (query, request) => {
const data = {
phone: query.phone,
captcha: query.captcha,
oldcaptcha: query.oldcaptcha,
countrycode: query.countrycode || '86',
}
return request(
'POST',
`https://music.163.com/api/user/replaceCellphone`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
16 changes: 16 additions & 0 deletions module/user_safe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = (query, request) => {
const data = {

}
return request(
'POST',
`https://music.163.com/api/usersafe/loginprotect/status/get`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}

0 comments on commit 3b94c7a

Please sign in to comment.