提交 c0e4b399 编写于 作者: B binaryify

修复私信历史记录分页参数问题,更新文档 #599

上级 058e7b9a
# 更新日志
### 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)
......
......@@ -2238,7 +2238,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**可选参数 :**
`limit` : 返回数量 , 默认为 30
`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0
`before` : 分页参数,取上一页最后一项的 `time` 获取下一页数据
**接口地址 :**
`/msg/private/history`
......
// 动态
module.exports = (query, request) => {
const data={
const data = {
'pagesize': query.pagesize || 20,
'lasttime': query.lasttime || -1
}
......
......@@ -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(
......
{
"name": "NeteaseCloudMusicApi",
"version": "3.22.3",
"version": "3.22.4",
"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.
先完成此消息的编辑!
想要评论请 注册