mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
v3.5.0 增加获取动态评论接口,增加点赞和评论对动态的支持
This commit is contained in:
@@ -9,12 +9,16 @@ module.exports = (query, request) => {
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_' // 视频
|
||||
5: 'R_VI_62_',// 视频
|
||||
6: 'A_EV_2_' // 动态
|
||||
}[query.type]
|
||||
const data = {
|
||||
threadId: query.type + query.id,
|
||||
commentId: query.cid
|
||||
}
|
||||
if(query.type == 'A_EV_2_'){
|
||||
data.threadId = query.threadId
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/v1/comment/${query.t}`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
|
||||
Reference in New Issue
Block a user