mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: add netease_api
This commit is contained in:
parent
fc0367c9b4
commit
0b701d23da
304 changed files with 27205 additions and 1 deletions
27
netease_api/module/comment_hug_list.js
Normal file
27
netease_api/module/comment_hug_list.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const { resourceTypeMap } = require('../util/config.json')
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'ios'
|
||||
query.cookie.appver = '8.1.20'
|
||||
query.type = resourceTypeMap[query.type || 0]
|
||||
const threadId = query.type + query.sid
|
||||
const data = {
|
||||
targetUserId: query.uid,
|
||||
commentId: query.cid,
|
||||
cursor: query.cursor || '-1',
|
||||
threadId: threadId,
|
||||
pageNo: query.page || 1,
|
||||
idCursor: query.idCursor || -1,
|
||||
pageSize: query.pageSize || 100,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/v2/resource/comments/hug/list`,
|
||||
data,
|
||||
{
|
||||
crypto: 'api',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue