mirror of
				https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
				synced 2025-10-25 01:03:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			530 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			530 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // 购买数字专辑
 | |
| 
 | |
| module.exports = (query, request) => {
 | |
|   const data = {
 | |
|     business: 'Album',
 | |
|     paymentMethod: query.payment,
 | |
|     digitalResources: JSON.stringify([
 | |
|       {
 | |
|         business: 'Album',
 | |
|         resourceID: query.id,
 | |
|         quantity: query.quantity,
 | |
|       },
 | |
|     ]),
 | |
|     from: 'web',
 | |
|   }
 | |
|   return request(
 | |
|     'POST',
 | |
|     `https://music.163.com/api/ordering/web/digital`,
 | |
|     data,
 | |
|     {
 | |
|       crypto: 'weapi',
 | |
|       cookie: query.cookie,
 | |
|       proxy: query.proxy,
 | |
|       realIP: query.realIP,
 | |
|     },
 | |
|   )
 | |
| }
 | 
