From 2f46ce8959f8927bdb633f8bd7e50e26636dadc9 Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 1 Jun 2017 20:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8B=A5=E5=B9=B2=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ app.js | 1 + docs/README.md | 2 -- package.json | 2 +- public/loginHack.html | 9 +++++++++ router/login.js | 3 ++- router/mv_first.js | 2 +- 7 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 public/loginHack.html diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 0669e72..3253677 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 2.5. | 2017.6.1 +修复若干细节问题 + ### 2.5.7 | 2017.5.22 修复若干问题 diff --git a/app.js b/app.js index e574e03..e901389 100644 --- a/app.js +++ b/app.js @@ -13,6 +13,7 @@ const app = express() // next() // }) +app.use(express.static('public')); // 获取专辑内容 app.use('/album', require('./router/album')) diff --git a/docs/README.md b/docs/README.md index 7e5a165..27b6287 100644 --- a/docs/README.md +++ b/docs/README.md @@ -834,8 +834,6 @@ $ set PORT=4000 && node app.js **可选参数:** `limit`: 取出数量,默认为 30 -`offset`: 偏移数量,用于分页,如:(页数-1)*30, 其中 30 为 limit 的值,默认为0 - **接口地址:** `/mv/first` diff --git a/package.json b/package.json index 84d0123..082b414 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "2.5.7", + "version": "2.5.8", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/public/loginHack.html b/public/loginHack.html new file mode 100644 index 0000000..b2abc84 --- /dev/null +++ b/public/loginHack.html @@ -0,0 +1,9 @@ + + + + + login hack + + + + \ No newline at end of file diff --git a/router/login.js b/router/login.js index ec9db97..ff2fc3d 100644 --- a/router/login.js +++ b/router/login.js @@ -11,7 +11,8 @@ router.get("/", (req, res) => { const data = { 'username': email, 'password': md5sum.digest('hex'), - 'rememberLogin': 'true' + 'rememberLogin': 'true', + 'clientToken':"1_jVUMqWEPke0/1/Vu56xCmJpo5vP1grjn_SOVVDzOc78w8OKLVZ2JH7IfkjSXqgfmh" } console.log(email,req.query.password); diff --git a/router/mv_first.js b/router/mv_first.js index a81558b..c50ed72 100644 --- a/router/mv_first.js +++ b/router/mv_first.js @@ -7,7 +7,7 @@ const { createWebAPIRequest } = require("../util/util") router.get("/", (req, res) => { const cookie = req.get('Cookie') ? req.get('Cookie') : '' const data = { - 'offset': req.query.offset || 0, + // 'offset': req.query.offset || 0, 'total': true, 'limit': req.query.limit || 30, "csrf_token": "" -- GitLab