From c6c888c4b6b33c8c3c9577e9dded355cc4619399 Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 5 Oct 2020 18:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=86=E9=A1=B5=E5=8F=82=E6=95=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#958?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/comment_new.js | 7 +++++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 80701de..d7a39ba 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.42.3 | 2020.10.05 +- 修复新评论接口分页参数问题 + ### 3.42.2 | 2020.10.05 - 更新歌单详情接口 diff --git a/module/comment_new.js b/module/comment_new.js index 61449ab..24416cf 100644 --- a/module/comment_new.js +++ b/module/comment_new.js @@ -12,11 +12,14 @@ module.exports = (query, request) => { 6: 'A_EV_2_', // 动态 }[query.type] const threadId = query.type + query.id + const pageSize = query.pageSize || 20 + const pageNo = query.pageNo || 1 const data = { threadId: threadId, //'R_SO_4_863481066', - pageNo: query.pageNo || 1, + pageNo: pageNo, showInner: query.showInner || true, - pageSize: query.pageSize || 20, + pageSize: pageSize, + cursor: (pageNo - 1) * (pageSize || 20), sortType: query.sortType || 1, //1:按推荐排序,2:按热度排序,3:按时间排序 } return request( diff --git a/package.json b/package.json index 76aa090..9fffdaf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.42.2", + "version": "3.42.3", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab