From 4b3cf00c8cca1413564ba2f82333be6b36d49e34 Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 28 Feb 2024 10:18:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ README.MD | 8 +++----- package.json | 2 +- public/docs/home.md | 21 +++++++++------------ 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 655d479..4643e9b 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.15.4 | 2024.02.28 +- 文档更新 + ### 4.15.3 | 2024.01.29 - 文件重命名,防止部署到 Vercel 404 diff --git a/README.MD b/README.MD index 900c00e..8738b2e 100644 --- a/README.MD +++ b/README.MD @@ -29,7 +29,7 @@ ## 安装 ```shell -$ git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git +$ git clone git@gitlab.com:Binaryify/NeteaseCloudMusicApi.git $ cd NeteaseCloudMusicApi $ npm install ``` @@ -37,7 +37,7 @@ $ npm install 或者 ```shell -$ git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git +$ git clone https://gitlab.com/Binaryify/NeteaseCloudMusicApi.git $ cd NeteaseCloudMusicApi $ npm install ``` @@ -428,8 +428,6 @@ banner({ type:0 }).then(res=>{ $ npm test ``` -![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/public/static/screenshot1.png) -![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/public/static/screenshot2.png) ## SDK @@ -447,4 +445,4 @@ $ npm test ## License -[The MIT License (MIT)](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/LICENSE) +[The MIT License (MIT)](https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/LICENSE) diff --git a/package.json b/package.json index 18ff986..23c61a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.15.3", + "version": "4.15.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/public/docs/home.md b/public/docs/home.md index 4be9b10..5250e59 100644 --- a/public/docs/home.md +++ b/public/docs/home.md @@ -296,7 +296,7 @@ ## 安装 ```shell -$ git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git +$ git clone git@gitlab.com:Binaryify/NeteaseCloudMusicApi.git $ cd NeteaseCloudMusicApi $ npm install ``` @@ -353,7 +353,7 @@ v4.0.8 加入了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需 ### 操作方法 -1. fork 此项目 +1. [fork](https://gitlab.com/Binaryify/neteasecloudmusicapi/-/forks/new) 此项目 2. 在 Vercel 官网点击 `New Project` 3. 点击 `Import Git Repository` 并选择你 fork 的此项目并点击`import` 4. 点击 `PERSONAL ACCOUNT` 的 `select` @@ -364,7 +364,7 @@ v4.0.8 加入了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需 ## 腾讯云 serverless 部署 因 `Vercel` 在国内访问太慢(不绑定自己的域名的情况下),在此提供腾讯云 serverless 部署方法(注意:腾讯云 serverless 并不是免费的,前三个月有免费额度,之后收费) ### 操作方法 -1. fork 此项目 +1. [fork](https://gitlab.com/Binaryify/neteasecloudmusicapi/-/forks/new) 此项目 2. 在腾讯云serverless应用管理页面( https://console.cloud.tencent.com/sls ),点击`新建应用` 3. 顶部`创建方式`选择 `Web 应用` 4. 选择 `Express框架`,点击底部`下一步按钮` @@ -428,9 +428,6 @@ banner({ type: 0 }).then((res) => { }) ``` -## 更新到 v3.0 说明 - -!>2018.10.14 更新到 3.0.0,使用了模块化机制,因为部分接口参数和 url 做了调整,如还不想升级到 3.0.0,请查看 [v2 的文档](http://binaryify.github.io/NeteaseCloudMusicApi/#/v2), [更新日志](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD), [2.0+下载地址](https://github.com/Binaryify/NeteaseCloudMusicApi/releases/tag/v2.20.5), 同时 2.0+ 将不再维护 ## Docker 容器运行 @@ -465,7 +462,7 @@ docker run -d -p 3000:3000 -e http_proxy= -e https_proxy= -e no_proxy= -e HTTP_P > 以下是自行 build docker 镜像方式 ``` -$ git clone https://github.com/Binaryify/NeteaseCloudMusicApi && cd NeteaseCloudMusicApi +$ git clone https://gitlab.com/Binaryify/neteasecloudmusicapi.git && cd NeteaseCloudMusicApi $ sudo docker build . -t netease-music-api @@ -819,7 +816,7 @@ signature:用户签名 ### 更新头像 -说明 : 登录后调用此接口,使用`'Content-Type': 'multipart/form-data'`上传图片 formData(name 为'imgFile'),可更新头像(参考: https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/public/avatar_update.html ),支持命令行调用,参考module_example目录下`avatar_upload.js` +说明 : 登录后调用此接口,使用`'Content-Type': 'multipart/form-data'`上传图片 formData(name 为'imgFile'),可更新头像(参考: https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/public/avatar_update.html ),支持命令行调用,参考module_example目录下`avatar_upload.js` **可选参数 :** @@ -936,7 +933,7 @@ tags: 歌单标签 ### 歌单封面上传 -说明 : 登录后调用此接口,使用`'Content-Type': 'multipart/form-data'`上传图片 formData(name 为'imgFile'),可更新歌单封面(参考:https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/public/playlist_cover_update.html) +说明 : 登录后调用此接口,使用`'Content-Type': 'multipart/form-data'`上传图片 formData(name 为'imgFile'),可更新歌单封面(参考:https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/public/playlist_cover_update.html) **必选参数 :** `id`: 歌单 id 3143833470 @@ -2996,7 +2993,7 @@ type : 地区 说明 : 登录后调用此接口,使用`'Content-Type': 'multipart/form-data'`上传 mp3 formData(name 为'songFile'),可上传歌曲到云盘 -参考: https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/public/cloud.html +参考: https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/public/cloud.html 访问地址: http://localhost:3000/cloud.html) @@ -3661,7 +3658,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` 主机模式: -代码可参考: https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/public/listen_together_host.html +代码可参考: https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/public/listen_together_host.html 访问地址: http://localhost:3000/listen_together_host.html @@ -4564,4 +4561,4 @@ qrCodeStatus:20,detailReason:0 验证成功qrCodeStatus:21,detailReason:0 二 ## License -[The MIT License (MIT)](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/LICENSE) +[The MIT License (MIT)](https://gitlab.com/Binaryify/NeteaseCloudMusicApi/blob/main/LICENSE)