mirror of
				https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
				synced 2025-10-25 01:03:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			575 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			575 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const { resourceTypeMap } = require('../util/config.json')
 | |
| const createOption = require('../util/option.js')
 | |
| module.exports = (query, request) => {
 | |
|   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(
 | |
|     `/api/v2/resource/comments/hug/list`,
 | |
|     data,
 | |
|     createOption(query),
 | |
|   )
 | |
| }
 | 
