回复评论

This commit is contained in:
jsososo
2019-09-11 19:38:04 +08:00
parent 98bb292872
commit b1ebbf51be
2 changed files with 12 additions and 2 deletions
+9 -1
View File
@@ -2,7 +2,11 @@
module.exports = (query, request) => {
query.cookie.os = 'pc'
query.t = (query.t == 1 ? 'add' : 'delete')
query.t = {
1: 'add',
0: 'delete',
2: 'reply'
}[query.t]
query.type = {
0: 'R_SO_4_', // 歌曲
1: 'R_MV_5_', // MV
@@ -23,6 +27,10 @@ module.exports = (query, request) => {
data.content = query.content
else if(query.t == 'delete')
data.commentId = query.commentId
else if (query.t == 'reply') {
data.commentId = query.commentId
data.content = query.content
}
return request(
'POST', `https://music.163.com/weapi/resource/comments/${query.t}`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}