diff --git a/module/captch_register.js b/module/captch_register.js new file mode 100644 index 0000000..460f62c --- /dev/null +++ b/module/captch_register.js @@ -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 } + ) +} \ No newline at end of file diff --git a/module/captch_sent.js b/module/captch_sent.js new file mode 100644 index 0000000..a76e6ce --- /dev/null +++ b/module/captch_sent.js @@ -0,0 +1,14 @@ +// 发送验证码 + +module.exports = (query, request) => { + const data = { + ctcode: '86', + cellphone: query.cellphone, + } + return request( + 'POST', + `https://music.163.com/weapi/sms/captcha/sent`, + data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } + ) +} diff --git a/module/captch_verify.js b/module/captch_verify.js new file mode 100644 index 0000000..efc6a1e --- /dev/null +++ b/module/captch_verify.js @@ -0,0 +1,15 @@ +// 发送验证码 + +module.exports = (query, request) => { + const data = { + ctcode: '86', + cellphone: query.cellphone, + captcha: query.captcha + } + return request( + 'POST', + `https://music.163.com/weapi/sms/captcha/verify`, + data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } + ) +}