mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 07:33:10 +00:00
修复点赞问题,更新文档
This commit is contained in:
parent
23b9a0e72f
commit
57c3b0f307
@ -1,5 +1,9 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
### 2.20.4 | 2018.09.27
|
||||||
|
|
||||||
|
修复点赞失效的问题
|
||||||
|
|
||||||
### 2.20.3 | 2018.09.26
|
### 2.20.3 | 2018.09.26
|
||||||
|
|
||||||
- 增加退出登陆接口
|
- 增加退出登陆接口
|
||||||
|
@ -844,8 +844,7 @@ mp3url 不能直接用 , 可通过 `/music/url` 接口传入歌曲 id 获取具
|
|||||||
|
|
||||||
**接口地址 :** `comment/like`
|
**接口地址 :** `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) 最热门的评论点赞
|
||||||
的那条评论点赞
|
|
||||||
|
|
||||||
### 发送/删除评论
|
### 发送/删除评论
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "2.20.3",
|
"version": "2.20.4",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
//comment like
|
//comment like
|
||||||
module.exports = (req, res, createWebAPIRequest, request) => {
|
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 cid = req.query.cid //评论 id
|
||||||
const id = req.query.id
|
const id = req.query.id
|
||||||
const typeMap = {
|
const typeMap = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user