diff --git a/CHANGELOG.MD b/CHANGELOG.MD index d3846dfc05ee6731d4885ca82aca360013481bb2..d8f7646fd7c35e918484ae91d5db787b55f46bea 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 3bdff7431b8af82d107c777f7416453c5e1c1439..a1df98fcdfb4f2b0fcf404afc3b95ffe63e42a78 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 531014df065f067e4b99aff92866b326a6cebc3c..fb1355c14f9be5401d982229adac4ddfc49d0a13 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 ff5706ef46ad9292c6002c2304b0134bb1b3c680..041568f322c8c6835e3e2a4ef87aef74fd27de13 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 = {