Log in foreign phone

This commit is contained in:
trazyn
2019-01-24 21:13:40 +08:00
parent 87dbf1d35e
commit 903c2de7ca
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ const crypto = require('crypto')
module.exports = (query, request) => {
const data = {
phone: query.phone,
countrycode: query.countrycode,
password: crypto.createHash('md5').update(query.password).digest('hex'),
rememberLogin: 'true'
}
@@ -12,4 +13,4 @@ module.exports = (query, request) => {
'POST', `https://music.163.com/weapi/login/cellphone`, data,
{crypto: 'weapi', ua: 'pc', cookie: query.cookie, proxy: query.proxy}
)
}
}