修复点赞问题,更新文档

This commit is contained in:
binaryify 2018-09-27 21:52:55 +08:00
parent 23b9a0e72f
commit 57c3b0f307
4 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
# 更新日志
### 2.20.4 | 2018.09.27
修复点赞失效的问题
### 2.20.3 | 2018.09.26
- 增加退出登陆接口

View File

@ -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) 最热门的评论点赞
### 发送/删除评论

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "2.20.3",
"version": "2.20.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",

View File

@ -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 = {