修复推荐歌单和网易出品mv参数错误,更新文档 fixed #571 #572

This commit is contained in:
binaryify 2019-08-21 22:26:41 +08:00
parent 92a194acf2
commit 936f66d887
5 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,7 @@
# 更新日志 # 更新日志
### 3.21.1 | 2019.08.21
- 修复推荐歌单和网易出品mv参数错误,更新文档 [#571](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/571) [#572](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/572)
### 3.21.0 | 2019.08.20 ### 3.21.0 | 2019.08.20
- 新增`歌单删除接口`[#570](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/570) - 新增`歌单删除接口`[#570](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/570)

View File

@ -666,7 +666,7 @@ tags: 歌单标签
**调用例子 :** `/hot/topic?limit=30&offset=30` **调用例子 :** `/hot/topic?limit=30&offset=30`
### 心动模式/智能播放 ### 心动模式/智能播放
说明 : 调用此接口 , 可获取心动模式/智能播放列表 说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表
**必选参数 :** `id` : 歌曲 id **必选参数 :** `id` : 歌曲 id
`pid` : 歌单 id `pid` : 歌单 id
@ -1762,9 +1762,16 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
说明 : 调用此接口 , 可获取推荐歌单 说明 : 调用此接口 , 可获取推荐歌单
**可选参数 :** `limit`: 取出数量 , 默认为 30
`offset`: 偏移数量 , 用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认
为 0
**接口地址 :** `/personalized` **接口地址 :** `/personalized`
**调用例子 :** `/personalized` **调用例子 :** `/personalized?limit=1`
### 推荐新音乐 ### 推荐新音乐

View File

@ -2,7 +2,7 @@
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
offset: query.limit || 0, offset: query.offset || 0,
limit: query.limit || 30 limit: query.limit || 30
}; };
return request( return request(

View File

@ -3,7 +3,7 @@
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { const data = {
limit: query.limit || 30, limit: query.limit || 30,
offset: query.limit || 0, offset: query.offset || 0,
total: true, total: true,
n: 1000 n: 1000
} }

View File

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