调整通知接口分页参数 #761

This commit is contained in:
binaryify 2020-05-13 18:43:37 +08:00
parent 2cb2ed9458
commit 96d0898ca1
4 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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`

View File

@ -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',

View File

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