From 4cc9dfabd47b7bc405b76d9e12df00f466ba5650 Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 16 May 2018 10:33:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20bug,=20update=20to=20v2.9.9,=E6=9B=B4?= =?UTF-8?q?=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 | 3 +++ docs/README.md | 3 +-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index c623741..37c8552 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 2.9.8 | 2018.05.16 +Bug 修复 + ### 2.9.8 | 2018.05.10 新增歌手分类列表,收藏/取消收藏歌手接口,新增更新用户信息,更新歌单接口 diff --git a/docs/README.md b/docs/README.md index 0c0cb83..2f6b755 100644 --- a/docs/README.md +++ b/docs/README.md @@ -658,8 +658,7 @@ mp3url 不能直接用 , 可通过 `/music/url` 接口传入歌曲 id 获取具 **接口地址 :** `/playlist/tracks` -**调用例子 :** `/playlist/tracks?op=add&pid=24381616&tracks=347230` ( 对应把 ' -海阔天空 ' 添加到 ' 我 ' 的歌单 , 测试的时候请把这里的 pid 换成你自己的 ) +**调用例子 :** `/playlist/tracks?op=add&pid=24381616&tracks=347231` ( 对应把歌曲添加到 ' 我 ' 的歌单 , 测试的时候请把这里的 pid 换成你自己的, id 和 tracks 不对可能会报502错误) ### 获取歌词 diff --git a/package.json b/package.json index f42c652..ca391dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "2.9.8", + "version": "2.9.9", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", From 3710984679c95ecbfa5bf8c2e08e8e216d84286f Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 16 May 2018 18:50:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=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 | 2 +- docs/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 37c8552..6a870b8 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,5 @@ # 更新日志 -### 2.9.8 | 2018.05.16 +### 2.9.9 | 2018.05.16 Bug 修复 ### 2.9.8 | 2018.05.10 diff --git a/docs/README.md b/docs/README.md index 2f6b755..dfcc758 100644 --- a/docs/README.md +++ b/docs/README.md @@ -210,7 +210,7 @@ docker run -d -p 3000:3000 --name netease-cloud-music -e http_proxy= -e https_pr `/simi/playlist?id=347230×tamp=1503019930000` !> 如果是跨域请求 , 请在所有请求带上 `xhrFields: { withCredentials: true }` 否则 - 可能会因为没带上 cookie 导致 301, 具体例子可看 `public/test.html`, 例子使用 jquery, axios 版本也类似 + 可能会因为没带上 cookie 导致 301, 具体例子可看 `public/test.html`, 例子使用 jQuery, axios 版本也类似 !> 301 错误基本都是没登录就调用了需要登录的接口,如果登陆了还是提示 301, 基本都是缓存把数据缓存起来了,解决方法是等待 2 分钟或者重启服务重新登录后再调用接口