From 5f61cdfe4c124054dbb29ed8c4eb96b7b240498d Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 7 Oct 2020 12:59:09 +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#962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/comment_new.js | 3 ++- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6bc5abb..31f20da 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.42.4 | 2020.10.07 +- 修复新评论接口分页参数问题 + ### 3.42.3 | 2020.10.05 - 修复新评论接口分页参数问题 diff --git a/module/comment_new.js b/module/comment_new.js index 5c8fd65..8399b12 100644 --- a/module/comment_new.js +++ b/module/comment_new.js @@ -19,7 +19,8 @@ module.exports = (query, request) => { pageNo, showInner: query.showInner || true, pageSize, - cursor: (pageNo - 1) * pageSize, + cursor: + +query.sortType === 3 ? query.cursor || '0' : (pageNo - 1) * pageSize, sortType: query.sortType || 1, //1:按推荐排序,2:按热度排序,3:按时间排序 } return request( diff --git a/package.json b/package.json index 2fbe755..2ca882d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.42.3", + "version": "3.42.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",