From 96d0898ca1454b4871e6749f86841aa88580ed66 Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 13 May 2020 18:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=80=9A=E7=9F=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=88=86=E9=A1=B5=E5=8F=82=E6=95=B0=20#761?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ docs/README.md | 2 +- module/msg_notices.js | 3 +-- package.json | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index bddd393..3d44374 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 eb1e81f..54fcb3b 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 241d3a2..0578ba8 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 a05fe75..76d9c6e 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", -- GitLab