YesPlayMusic/netease_api/module/digitalAlbum_ordering.js
2021-03-06 22:07:16 +08:00

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,
},
)
}