提交 96d0898c 编写于 作者: B binaryify

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

上级 2cb2ed94
# 更新日志
### 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)
......
......@@ -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`
......
......@@ -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',
......
{
"name": "NeteaseCloudMusicApi",
"version": "3.29.0",
"version": "3.29.1",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册