You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
397 B
20 lines
397 B
// 批量请求接口
|
|
|
|
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', `https://music.163.com/eapi/batch`, data, {
|
|
crypto: 'eapi',
|
|
proxy: query.proxy,
|
|
url: '/api/batch',
|
|
cookie: query.cookie,
|
|
realIP: query.realIP,
|
|
})
|
|
}
|