diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6d7e013..2acbd48 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,6 @@ # 更新日志 +### 4.19.2 | 2024.05.07 +- 参数调整 ### 4.19.1 | 2024.05.07 diff --git a/module/eapi_decrypt.js b/module/eapi_decrypt.js index 0a17050..be62dba 100644 --- a/module/eapi_decrypt.js +++ b/module/eapi_decrypt.js @@ -2,7 +2,7 @@ const { eapiResDecrypt, eapiReqDecrypt } = require('../util/crypto') module.exports = async (query, request) => { const hexString = query.hexString - const isFormat = query.isFormat != 'false' + const isReq = query.isReq != 'false' if (!hexString) { return { status: 400, @@ -18,7 +18,7 @@ module.exports = async (query, request) => { status: 200, body: { code: 200, - data: isFormat + data: isReq ? eapiReqDecrypt(pureHexString) : eapiResDecrypt(pureHexString), }, diff --git a/package.json b/package.json index ed355f7..23fb1af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.19.1", + "version": "4.19.2", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/public/eapi_decrypt.html b/public/eapi_decrypt.html index a5f5996..8814974 100644 --- a/public/eapi_decrypt.html +++ b/public/eapi_decrypt.html @@ -16,10 +16,10 @@ 解密
解密结果: @@ -37,7 +37,7 @@ return { hexString: 'AD96DDB984491E79B6F429DD650C6E2AE524627AC223AC9A123C66BB0997965950FED137544A93DFC718E16F57C8C121AF537086F395570A5602A3922366D11964DAFACD7830AACABF62E5650E67F457E79C1D2E13502391FC3487216CC5BF8681843FCB8E05559487EB18AAC1BE0EFEA4F7B6A050478366153A9426C238B8869600B275704555A9EB94C92E4F3FDABE9E0BCE07645410D0AA7B675698A4CAE6CD3620633ABF0B849A4244CC8DFC5DB2646D5EA9B3954E62BFEF19AFEAFDDC34E55C3E9A1DD3167CF53D443617108141', result: '{}', - isFormat: true + isReq: true } }, mounted() { @@ -47,7 +47,7 @@ async decrypt() { try { const res = await axios({ - url: `/eapi/decrypt?hexString=${this.hexString}&isFormat=${this.isFormat}`, + url: `/eapi/decrypt?hexString=${this.hexString}&isReq=${this.isReq}`, method: 'post' }) this.result = JSON.stringify(res.data)