mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 21:58:56 +08:00
24 lines
511 B
JavaScript
24 lines
511 B
JavaScript
// 注册账号
|
|
const crypto = require('crypto')
|
|
|
|
module.exports = (query, request) => {
|
|
query.cookie.os = 'pc'
|
|
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,
|
|
realIP: query.realIP,
|
|
}
|
|
)
|
|
}
|