Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
调整通知接口分页参数 #761
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed May 13, 2020
1 parent 2cb2ed9 commit 96d0898
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
3 changes: 1 addition & 2 deletions module/msg_notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.29.0",
"version": "3.29.1",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 96d0898

Please sign in to comment.