diff --git a/CHANGELOG.MD b/CHANGELOG.MD index bddd3937ea2..3d44374d1d0 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.29.1 | 2020.05.13 +- 调整通知接口分页参数 [#761](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/761) + ### 3.29.0 | 2020.05.11 - 支持批量删除歌单 [#760](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/760) diff --git a/docs/README.md b/docs/README.md index eb1e81f9d58..54fcb3b23b0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2444,7 +2444,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` `limit` : 返回数量 , 默认为 30 -`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0 +`lasttime` : 返回数据的 `time` ,默认-1,传入上一次返回结果的 time,将会返回下一页的数据 **接口地址 :** `/msg/notices` diff --git a/module/msg_notices.js b/module/msg_notices.js index 241d3a2ab0d..0578ba87fd1 100644 --- a/module/msg_notices.js +++ b/module/msg_notices.js @@ -2,9 +2,8 @@ module.exports = (query, request) => { const data = { - offset: query.offset || 0, limit: query.limit || 30, - total: 'true', + time: query.lasttime || -1 }; return request('POST', `https://music.163.com/api/msg/notices`, data, { crypto: 'weapi', diff --git a/package.json b/package.json index a05fe75e184..76d9c6eb6b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.29.0", + "version": "3.29.1", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",