From 5b30e1b222f55154d1937d9a6a3146f80a0fabb1 Mon Sep 17 00:00:00 2001 From: binaryify <821374382@qq.com> Date: Tue, 7 May 2024 22:46:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8F=82=E6=95=B0=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ package.json | 2 +- public/eapi_decrypt.html | 7 +++++-- server.js | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 87b6a28..f8e4523 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.19.4 | 2024.05.07 +- 参数接收问题修复 + ### 4.19.3 | 2024.05.07 - 参数调整 diff --git a/package.json b/package.json index 06f6a95..fb5e0ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.19.3", + "version": "4.19.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/public/eapi_decrypt.html b/public/eapi_decrypt.html index f77bc98..5da6cc9 100644 --- a/public/eapi_decrypt.html +++ b/public/eapi_decrypt.html @@ -47,8 +47,11 @@ async decrypt() { try { const res = await axios({ - url: `/eapi/decrypt?hexString=${this.hexString}&isReq=${this.isReq}`, - method: 'post' + url: `/eapi/decrypt?isReq=${this.isReq}`, + method: 'post', + data: { + hexString: this.hexString + } }) this.result = JSON.stringify(res.data.data) console.log(res.data); diff --git a/server.js b/server.js index 114f34c..3feee0d 100644 --- a/server.js +++ b/server.js @@ -135,6 +135,9 @@ async function consturctServer(moduleDefs) { const app = express() const { CORS_ALLOW_ORIGIN } = process.env app.set('trust proxy', true) + app.use(express.json({ limit: '50mb' })) + app.use(express.urlencoded({ limit: '50mb' })) + /** * Serving static files */