mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
修复私信历史记录分页参数问题,更新文档 #599
This commit is contained in:
parent
058e7b9a35
commit
c0e4b39938
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.22.4 | 2019.09.26
|
||||||
|
- 修复私信历史记录分页参数问题,更新文档 [#599](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/599)
|
||||||
|
|
||||||
### 3.22.3 | 2019.09.24
|
### 3.22.3 | 2019.09.24
|
||||||
- 手机号码检测: 添加国家码作为参数,方便检测国外手机号码 [#598](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/598)
|
- 手机号码检测: 添加国家码作为参数,方便检测国外手机号码 [#598](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/598)
|
||||||
|
|
||||||
|
@ -2238,7 +2238,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
**可选参数 :**
|
**可选参数 :**
|
||||||
`limit` : 返回数量 , 默认为 30
|
`limit` : 返回数量 , 默认为 30
|
||||||
|
|
||||||
`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0
|
`before` : 分页参数,取上一页最后一项的 `time` 获取下一页数据
|
||||||
|
|
||||||
**接口地址 :**
|
**接口地址 :**
|
||||||
`/msg/private/history`
|
`/msg/private/history`
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// 动态
|
// 动态
|
||||||
|
|
||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
const data={
|
const data = {
|
||||||
'pagesize': query.pagesize || 20,
|
'pagesize': query.pagesize || 20,
|
||||||
'lasttime': query.lasttime || -1
|
'lasttime': query.lasttime || -1
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
const data = {
|
const data = {
|
||||||
userId: query.uid,
|
userId: query.uid,
|
||||||
offset: query.offset || 0,
|
|
||||||
limit: query.limit || 30,
|
limit: query.limit || 30,
|
||||||
|
time: query.before || 0,
|
||||||
total: 'true'
|
total: 'true'
|
||||||
};
|
};
|
||||||
return request(
|
return request(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.22.3",
|
"version": "3.22.4",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user