mirror of
				https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
				synced 2025-10-26 02:03:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			396 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			396 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // 批量请求接口
 | |
| 
 | |
| module.exports = (query, request) => {
 | |
|   const data = {
 | |
|     e_r: true,
 | |
|   }
 | |
|   Object.keys(query).forEach((i) => {
 | |
|     if (/^\/api\//.test(i)) {
 | |
|       data[i] = query[i]
 | |
|     }
 | |
|   })
 | |
|   return request('POST', `http://music.163.com/eapi/batch`, data, {
 | |
|     crypto: 'eapi',
 | |
|     proxy: query.proxy,
 | |
|     url: '/api/batch',
 | |
|     cookie: query.cookie,
 | |
|     realIP: query.realIP,
 | |
|   })
 | |
| }
 | 
