新增用户绑定信息,用户绑定手机,新版评论,点赞过的视频,收藏视频到视频歌单,删除视频歌单里的视频,最近播放的视频,音乐日历等接口 创建歌单接口增加type参数,可创建视频歌单 #955 #946

This commit is contained in:
binaryify
2020-10-04 22:11:27 +08:00
parent a7019f5ca3
commit 1d880bede7
14 changed files with 1517 additions and 1228 deletions

34
module/comment_new.js Normal file
View File

@ -0,0 +1,34 @@
// 评论
module.exports = (query, request) => {
query.cookie.os = 'pc'
query.type = {
0: 'R_SO_4_', // 歌曲
1: 'R_MV_5_', // MV
2: 'A_PL_0_', // 歌单
3: 'R_AL_3_', // 专辑
4: 'A_DJ_1_', // 电台,
5: 'R_VI_62_', // 视频
6: 'A_EV_2_', // 动态
}[query.type]
const threadId = query.type + query.id
const data = {
threadId: threadId, //'R_SO_4_863481066',
pageNo: query.pageNo || 1,
showInner: query.showInner || true,
pageSize: query.pageSize || 20,
sortType: query.sortType || 1, //1:按推荐排序,2:按热度排序,3:按时间排序
}
return request(
'POST',
`https://music.163.com/api/v2/resource/comments`,
data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
url: '/api/v2/resource/comments',
},
)
}