diff --git a/module/captch_register.js b/module/captch_register.js new file mode 100644 index 0000000000000000000000000000000000000000..460f62c21838d82cb85f49479321cc609e7f1cd9 --- /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 0000000000000000000000000000000000000000..a76e6cee13cee78da05ab1cfc047be123dd2ae47 --- /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 0000000000000000000000000000000000000000..efc6a1eb248aa3751f5583f369f051073b09f377 --- /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 } + ) +}