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 */