mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
module.exports = (query, request) => {
|
|
const data = {
|
|
"e_r": true
|
|
};
|
|
Object.keys(query).forEach(i => {
|
|
if (/^\/api\//.test(i)) {
|
|
data[i] = query[i]
|
|
}
|
|
})
|
|
return request(
|
|
'POST', `http://music.163.com/eapi/batch`, data,
|
|
{crypto: 'eapi', proxy: query.proxy, url: '/api/batch', cookie: query.cookie}
|
|
)
|
|
}; |