From af8355f60925250d8ddbcd8a7080bab149be5872 Mon Sep 17 00:00:00 2001 From: binaryify Date: Tue, 9 Apr 2019 16:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95460?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#459?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/login.js | 1 + module/login_cellphone.js | 1 + package.json | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6317161..3df2123 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.7.1 | 2019.04.09 +- 修复登录460问题 + ### 3.7.0 | 2019.03.20 - 修复喜欢音乐接口参数判断问题 diff --git a/module/login.js b/module/login.js index 2774554..8f55aa1 100644 --- a/module/login.js +++ b/module/login.js @@ -3,6 +3,7 @@ const crypto = require('crypto') module.exports = (query, request) => { + query.cookie.os = 'pc' const data = { username: query.email, password: crypto.createHash('md5').update(query.password).digest('hex'), diff --git a/module/login_cellphone.js b/module/login_cellphone.js index 9e5c9c4..cc592c1 100644 --- a/module/login_cellphone.js +++ b/module/login_cellphone.js @@ -3,6 +3,7 @@ const crypto = require('crypto') module.exports = (query, request) => { + query.cookie.os = 'pc' const data = { phone: query.phone, countrycode: query.countrycode, diff --git a/package.json b/package.json index 751c526..9fb8563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.7.0", + "version": "3.7.1", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",