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

20 lines
363 B
JavaScript

// 视频链接
module.exports = (query, request) => {
const data = {
ids: '["' + query.id + '"]',
resolution: query.res || 1080,
}
return request(
'POST',
`https://music.163.com/weapi/cloudvideo/playurl`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}