mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-25 09:41:49 +08: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,
|
|
},
|
|
)
|
|
}
|