You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
530 B
28 lines
530 B
4 years ago
|
// 购买数字专辑
|
||
|
|
||
|
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,
|
||
|
},
|
||
|
)
|
||
|
}
|