Merge pull request #432 from trazyn/master

Add pac proxy support
This commit is contained in:
binaryify
2019-01-27 23:11:44 +08:00
committed by GitHub
4 changed files with 20 additions and 8 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}
)
}
}