From 40fe20dba49e3311d985fe5c423cf44a755f9e66 Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 4 Jan 2018 17:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20proxy=20=E5=8A=9F=E8=83=BD?= =?UTF-8?q?,=E4=BF=AE=E5=A4=8D=20cookie=20=E4=B8=A2=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 4 ++++ README.MD | 20 ++++++++++---------- docs/README.md | 12 ++++++------ package.json | 2 +- 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 00c8808..a5aa65d 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,8 @@ # 更新日志 +### 2.8.1 | 2018.01.04 + +添加了proxy功能 + ### 2.8.0 | 2018.01.04 用 'request' 重写了请求函数 diff --git a/README.MD b/README.MD index c47cf72..5834fa2 100644 --- a/README.MD +++ b/README.MD @@ -6,7 +6,7 @@ devDependencies devDependencies -

+

## 灵感来自 [disoul/electron-cloud-music](https://github.com/disoul/electron-cloud-music) @@ -18,7 +18,7 @@ ## 版本新特性 -### ? ? ? | 2018.01.04 +### 2.8.1 | 2018.01.04 添加了proxy功能 ### 2.8.0 | 2018.01.04 @@ -28,9 +28,9 @@ 优化 CORS 设置 ### 2.6.4 | 2017.7.16 -添加缓存机制和随机 UA 机制 感谢[@u3u](https://github.com/u3u) +添加缓存机制和随机 UA 机制 感谢[@u3u](https://github.com/u3u) [issue:77](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/77) -优化请求代码 感谢 [@huhuime](https://github.com/huhuime) +优化请求代码 感谢 [@huhuime](https://github.com/huhuime) [issue:83](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/83) ### 2.6.2 | 2017.7.16 @@ -160,22 +160,22 @@ ## 环境要求 需要 NodeJS 6.0+ 环境 -## 安装 +## 安装 ``` shell $ git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git $ npm install ``` ## 运行 ``` shell -$ node app.js +$ node app.js ``` -服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令: +服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令: Mac/Linux ```shell $ PORT=4000 node app.js ``` -windows 下使用 git-bash 或者 cmder 等终端执行以下命令: +windows 下使用 git-bash 或者 cmder 等终端执行以下命令: ```shell $ set PORT=4000 && node app.js ``` @@ -186,13 +186,13 @@ $ set PORT=4000 && node app.js ![文档](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/docs.png) ## 更新日志 -[changelog](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD) +[changelog](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD) ## 单元测试 ``` shell $ npm test -``` +``` ![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot1.png) ![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot2.png) diff --git a/docs/README.md b/docs/README.md index a5c3c43..8d197af 100644 --- a/docs/README.md +++ b/docs/README.md @@ -30,7 +30,7 @@ fetch(url) ## 版本新特性 -### ? ? ? | 2018.01.04 +### 2.8.1 | 2018.01.04 添加了proxy功能 ### 2.8.0 | 2018.01.04 @@ -353,8 +353,8 @@ $ set PORT=4000 && node app.js **接口地址:** `/music/url` -**调用例子:** -`/music/url?id=33894312` +**调用例子:** +`/music/url?id=33894312` `/music/url?id=405998841,33894312` 返回数据如下图: @@ -432,7 +432,7 @@ $ set PORT=4000 && node app.js `/search/multimatch?keywords=海阔天空` ### 对歌单添加或删除歌曲 -说明:调用此接口,可以添加歌曲到歌单或者从歌单删除某首歌曲(需要登录) +说明:调用此接口,可以添加歌曲到歌单或者从歌单删除某首歌曲(需要登录) **必选参数:** `op`: 从歌单增加单曲为add,删除为 del @@ -455,8 +455,8 @@ $ set PORT=4000 && node app.js **接口地址:** `/lyric` -**调用例子:** -`/lyric?id=33894312` +**调用例子:** +`/lyric?id=33894312` 返回数据如下图: ![获取歌词](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%AD%8C%E8%AF%8D.png) diff --git a/package.json b/package.json index cd45674..95b4f41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "2.8.0", + "version": "2.8.1", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",