mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
docs: 更新文档
This commit is contained in:
@@ -240,6 +240,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
|
||||
@@ -323,6 +324,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