mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-04 23:18:54 +08:00
修复新评论接口分页参数问题 #958
This commit is contained in:
parent
7bb48bace0
commit
c6c888c4b6
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.42.3 | 2020.10.05
|
||||||
|
- 修复新评论接口分页参数问题
|
||||||
|
|
||||||
### 3.42.2 | 2020.10.05
|
### 3.42.2 | 2020.10.05
|
||||||
- 更新歌单详情接口
|
- 更新歌单详情接口
|
||||||
|
|
||||||
|
@ -12,11 +12,14 @@ module.exports = (query, request) => {
|
|||||||
6: 'A_EV_2_', // 动态
|
6: 'A_EV_2_', // 动态
|
||||||
}[query.type]
|
}[query.type]
|
||||||
const threadId = query.type + query.id
|
const threadId = query.type + query.id
|
||||||
|
const pageSize = query.pageSize || 20
|
||||||
|
const pageNo = query.pageNo || 1
|
||||||
const data = {
|
const data = {
|
||||||
threadId: threadId, //'R_SO_4_863481066',
|
threadId: threadId, //'R_SO_4_863481066',
|
||||||
pageNo: query.pageNo || 1,
|
pageNo: pageNo,
|
||||||
showInner: query.showInner || true,
|
showInner: query.showInner || true,
|
||||||
pageSize: query.pageSize || 20,
|
pageSize: pageSize,
|
||||||
|
cursor: (pageNo - 1) * (pageSize || 20),
|
||||||
sortType: query.sortType || 1, //1:按推荐排序,2:按热度排序,3:按时间排序
|
sortType: query.sortType || 1, //1:按推荐排序,2:按热度排序,3:按时间排序
|
||||||
}
|
}
|
||||||
return request(
|
return request(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.42.2",
|
"version": "3.42.3",
|
||||||
"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