[feat] 新增星评馆简要评论获取

This commit is contained in:
Kengwang 2023-07-15 16:04:21 +08:00 committed by GitHub
parent 77a0dcda3b
commit 35b2c8454b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View File

@ -4108,6 +4108,11 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子:** `/style/artist?tagId=1000`
### 云村星评馆 - 简要评论
说明: 调用此接口可以获取首页推荐的星评馆评论信息
**接口地址:** `/starpick/comments/summary`
## 离线访问此文档

View File

@ -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,
},
)
}