v3.5.0 增加获取动态评论接口,增加点赞和评论对动态的支持

This commit is contained in:
binaryify
2019-03-14 16:03:56 +08:00
parent bcfdbe4406
commit a61c1250fc
8 changed files with 71 additions and 5 deletions
+5 -1
View File
@@ -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}