v3.18.0 新增 更换绑定手机接口 #518

This commit is contained in:
binaryify
2019-06-29 16:24:50 +08:00
parent a6b072ab39
commit 6bc08d95e4
8 changed files with 52 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
// 注册账号
const crypto = require('crypto')
module.exports = (query, request) => {
const data = {
captcha: query.captcha,
phone: query.phone,
password: crypto.createHash('md5').update(query.password).digest('hex'),
nickname: query.nickname
}
return request(
'POST',
`https://music.163.com/weapi/register/cellphone`,
data,
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
)
}