增加邮箱登录注意

This commit is contained in:
binaryify 2017-05-20 19:42:07 +08:00
parent a0114df488
commit 5eb9920392
2 changed files with 4 additions and 3 deletions

View File

@ -127,7 +127,7 @@ $ set PORT=4000 && node app.js
`/login/cellphone?phone=xxx&password=yyy` `/login/cellphone?phone=xxx&password=yyy`
#### 2. 邮箱登录 #### 2. 邮箱登录
注意:此接口被网易和谐了,待修复,暂时使用手机登录(2017.05.20)
**必选参数:** **必选参数:**
`email`: 163网易邮箱 `email`: 163网易邮箱
`password`: 密码 `password`: 密码

View File

@ -13,10 +13,11 @@ router.get("/", (req, res) => {
'password': md5sum.digest('hex'), 'password': md5sum.digest('hex'),
'rememberLogin': 'true' 'rememberLogin': 'true'
} }
console.log(email,req.query.password);
createWebAPIRequest( createWebAPIRequest(
'music.163.com', 'music.163.com',
'/weapi/login', '/weapi/login?csrf_token=',
'POST', 'POST',
data, data,
cookie, cookie,