From 57c3b0f30787b4e549d1f4505e0a51d8d94ee91d Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 27 Sep 2018 21:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E8=B5=9E=E9=97=AE?= =?UTF-8?q?=E9=A2=98,=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 4 ++++ docs/README.md | 3 +-- package.json | 2 +- router/comment_like.js | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index d3846df..d8f7646 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,9 @@ # 更新日志 +### 2.20.4 | 2018.09.27 + +修复点赞失效的问题 + ### 2.20.3 | 2018.09.26 - 增加退出登陆接口 diff --git a/docs/README.md b/docs/README.md index 3bdff74..a1df98f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -844,8 +844,7 @@ mp3url 不能直接用 , 可通过 `/music/url` 接口传入歌曲 id 获取具 **接口地址 :** `comment/like` -**调用例子 :** `/comment/like?id=186016&cid=4956438&t=1&type=0` 对应给晴天最热门 -的那条评论点赞 +**调用例子 :** `/comment/like?id=29178366&cid=12840183&t=1&type=0` 对应给 [https://music.163.com/#/song?id=29178366](https://music.163.com/#/song?id=29178366) 最热门的评论点赞 ### 发送/删除评论 diff --git a/package.json b/package.json index 531014d..fb1355c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "2.20.3", + "version": "2.20.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/router/comment_like.js b/router/comment_like.js index ff5706e..041568f 100644 --- a/router/comment_like.js +++ b/router/comment_like.js @@ -1,6 +1,7 @@ //comment like module.exports = (req, res, createWebAPIRequest, request) => { - const cookie = req.get('Cookie') ? req.get('Cookie') : '' + let cookie = req.get('Cookie') ? req.get('Cookie') : '' + cookie += ';os=pc;' const cid = req.query.cid //评论 id const id = req.query.id const typeMap = { -- GitLab