mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-06 23:12:06 +08:00
新增eapi算法
This commit is contained in:
14
module/batch.js
Normal file
14
module/batch.js
Normal file
@ -0,0 +1,14 @@
|
||||
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}
|
||||
)
|
||||
};
|
Reference in New Issue
Block a user