mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 23:51:23 +08:00
update to 4.30.0
This commit is contained in:
@@ -237,6 +237,7 @@ const createRequest = (uri, data, options) => {
|
||||
headers['User-Agent'] = options.ua || chooseUserAgent('api', 'iphone')
|
||||
|
||||
if (crypto === 'eapi') {
|
||||
// headers['x-aeapi'] = true // 服务器会使用gzip压缩返回值
|
||||
data.header = header
|
||||
data.e_r = toBoolean(
|
||||
options.e_r !== undefined
|
||||
@@ -320,6 +321,7 @@ const createRequest = (uri, data, options) => {
|
||||
if (crypto === 'eapi' && data.e_r) {
|
||||
answer.body = encrypt.eapiResDecrypt(
|
||||
body.toString('hex').toUpperCase(),
|
||||
headers['x-aeapi'],
|
||||
)
|
||||
} else {
|
||||
answer.body =
|
||||
|
||||
Reference in New Issue
Block a user