mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-23 04:03:04 +08:00
22 lines
525 B
JavaScript
22 lines
525 B
JavaScript
const { resourceTypeMap } = require('../util/config.json')
|
|
module.exports = (query, request) => {
|
|
query.type = resourceTypeMap[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,
|
|
},
|
|
)
|
|
}
|