提交 c6c888c4 编写于 作者: B binaryify

修复新评论接口分页参数问题 #958

上级 7bb48bac
# 更新日志 # 更新日志
### 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) => { ...@@ -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(
......
{ {
"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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册