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

Commit

Permalink
修复私信历史记录分页参数问题,更新文档 #599
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Sep 26, 2019
1 parent 058e7b9 commit c0e4b39
Show file tree
Hide file tree
Showing 5 changed files with 7 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.22.4 | 2019.09.26
- 修复私信历史记录分页参数问题,更新文档 [#599](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/599)

### 3.22.3 | 2019.09.24
- 手机号码检测: 添加国家码作为参数,方便检测国外手机号码 [#598](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/598)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2238,7 +2238,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**可选参数 :**
`limit` : 返回数量 , 默认为 30

`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0
`before` : 分页参数,取上一页最后一项的 `time` 获取下一页数据

**接口地址 :**
`/msg/private/history`
Expand Down
2 changes: 1 addition & 1 deletion module/event.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 动态

module.exports = (query, request) => {
const data={
const data = {
'pagesize': query.pagesize || 20,
'lasttime': query.lasttime || -1
}
Expand Down
2 changes: 1 addition & 1 deletion module/msg_private_history.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module.exports = (query, request) => {
const data = {
userId: query.uid,
offset: query.offset || 0,
limit: query.limit || 30,
time: query.before || 0,
total: 'true'
};
return request(
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.22.3",
"version": "3.22.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit c0e4b39

Please sign in to comment.