You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
632 B
28 lines
632 B
4 years ago
|
module.exports = (query, request) => {
|
||
|
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_', // 视频
|
||
|
}[query.type];
|
||
|
const data = {
|
||
|
parentCommentId: query.parentCommentId,
|
||
|
threadId: query.type + query.id,
|
||
|
time: query.time || -1,
|
||
|
limit: query.limit || 20,
|
||
|
};
|
||
|
return request(
|
||
|
'POST',
|
||
|
`https://music.163.com/api/resource/comment/floor/get`,
|
||
|
data,
|
||
|
{
|
||
|
crypto: 'weapi',
|
||
|
cookie: query.cookie,
|
||
|
proxy: query.proxy,
|
||
|
realIP: query.realIP,
|
||
|
},
|
||
|
);
|
||
|
};
|