This commit is contained in:
binaryify
2021-02-27 19:58:24 +08:00
parent d1907ae541
commit 44bb25e81c
9 changed files with 76 additions and 22 deletions

View File

@ -0,0 +1,21 @@
module.exports = (query, request) => {
const data = {
phone: query.phone,
countrycode: query.countrycode || '86',
captcha: query.captcha,
password: query.password
? crypto.createHash('md5').update(query.password).digest('hex')
: '',
}
return request(
'POST',
`https://music.163.com/api/user/bindingCellphone`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}