fix:参数接收问题修复

This commit is contained in:
binaryify 2024-05-07 22:46:50 +08:00
parent 076ee17286
commit 5b30e1b222
4 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
### 4.19.4 | 2024.05.07
- 参数接收问题修复
### 4.19.3 | 2024.05.07
- 参数调整

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "4.19.3",
"version": "4.19.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",

View File

@ -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);

View File

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