mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
v3.18.1评论接口增加 before 参数以获取超过5000条评论数据 #521 修复 /msg/comments 传入参数和文档描述不一致问题
This commit is contained in:
+14
-11
@@ -1,14 +1,17 @@
|
||||
// 歌曲评论
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
const data = {
|
||||
rid: query.id,
|
||||
limit: query.limit || 20,
|
||||
offset: query.offset || 0
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/api/v1/resource/comments/R_SO_4_${query.id}`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
query.cookie.os = "pc";
|
||||
const data = {
|
||||
rid: query.id,
|
||||
limit: query.limit || 20,
|
||||
offset: query.offset || 0,
|
||||
beforeTime: query.before|| 0
|
||||
};
|
||||
return request(
|
||||
"POST",
|
||||
`https://music.163.com/api/v1/resource/comments/R_SO_4_${query.id}`,
|
||||
data,
|
||||
{ crypto: "weapi", cookie: query.cookie, proxy: query.proxy }
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user