YesPlayMusic/netease_api/module/rebind.js

22 lines
416 B
JavaScript
Raw Normal View History

2021-03-06 22:04:18 +08:00
// 更换手机
module.exports = (query, request) => {
const data = {
captcha: query.captcha,
phone: query.phone,
oldcaptcha: query.oldcaptcha,
ctcode: query.ctcode || '86',
}
return request(
'POST',
`https://music.163.com/api/user/replaceCellphone`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}