From 356d5e2c462f9e8bc422be21e68dad1c79d5c723 Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 10 Jun 2019 16:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=96=87=E6=A1=A3=20#504?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ docs/README.md | 10 ++++++---- module/user_followeds.js | 4 ++-- package.json | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index f02f0ba..00ab918 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.14.0 | 2019.06.10 +- 获取用户粉丝列表接口修改请求参数,更新文档 + ### 3.13.1 | 2019.06.09 - 修复获取用户粉丝列表接口只能获取1000个的问题 diff --git a/docs/README.md b/docs/README.md index 061d256..35a2080 100644 --- a/docs/README.md +++ b/docs/README.md @@ -457,14 +457,16 @@ tags:歌单tag 说明 : 登陆后调用此接口 , 传入用户 id, 可以获取用户粉丝列表 -**必选参数 :** `uid` : 用户 id +**必选参数 :** `uid` : 用户 id + +**可选参数 :** `limit` : 返回数量 , 默认为 30 + +`lasttime` : 返回数据的 `lasttime` ,默认-1,传入上一次返回结果的 lasttime,将会返回下一页的数据 -**可选参数 :** `limit` : 返回数量 , 默认为 30 `offset` : 偏移数量,用于分页 , 如 -: 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0 **接口地址 :** `/user/followeds` -**调用例子 :** `/user/followeds?uid=32953014` +**调用例子 :** `/user/followeds?uid=32953014` `/user/followeds?uid=416608258&time=1560152549136` ### 获取用户动态 diff --git a/module/user_followeds.js b/module/user_followeds.js index 19a2c38..8ebba12 100644 --- a/module/user_followeds.js +++ b/module/user_followeds.js @@ -3,8 +3,8 @@ module.exports = (query, request) => { const data = { userId: query.uid, - limit: query.limit || 30, - offset: query.offset || 0 + time: query.lasttime || -1, + limit: query.limit || 30 }; return request( "POST", diff --git a/package.json b/package.json index c915dfa..e425ece 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.13.1", + "version": "3.14.0", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab