From 35b2c8454bcd77e2bbfa68a6845f07610f3ad564 Mon Sep 17 00:00:00 2001 From: Kengwang Date: Sat, 15 Jul 2023 16:04:21 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9E=E6=98=9F=E8=AF=84?= =?UTF-8?q?=E9=A6=86=E7=AE=80=E8=A6=81=E8=AF=84=E8=AE=BA=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 5 +++++ module/starpick_comments_summary.js | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 module/starpick_comments_summary.js diff --git a/docs/README.md b/docs/README.md index 661bc2c..c01e729 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4108,6 +4108,11 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **调用例子:** `/style/artist?tagId=1000` +### 云村星评馆 - 简要评论 + +说明: 调用此接口可以获取首页推荐的星评馆评论信息 + +**接口地址:** `/starpick/comments/summary` ## 离线访问此文档 diff --git a/module/starpick_comments_summary.js b/module/starpick_comments_summary.js new file mode 100644 index 0000000..2ed5a1c --- /dev/null +++ b/module/starpick_comments_summary.js @@ -0,0 +1,23 @@ +// 云村星评馆 - 简要评论列表 +module.exports = (query, request) => { + const data = { + cursor: JSON.stringify({ + offset: 0, + blockCodeOrderList: ['HOMEPAGE_BLOCK_NEW_HOT_COMMENT'], + refresh: true, + }), + } + return request( + 'POST', + `https://interface3.music.163.com/eapi/homepage/block/page`, + data, + { + crypto: 'eapi', + cookie: query.cookie, + proxy: query.proxy, + url: '/api/homepage/block/page', + realIP: query.realIP, + }, + ) + } + \ No newline at end of file