fix bug for param name of enhanceList

This commit is contained in:
CounterFire2023 2024-03-27 13:22:09 +08:00
parent 97fc6fb7bf
commit 15cf7d8449
2 changed files with 3 additions and 2 deletions

View File

@ -501,7 +501,7 @@ body:
```js ```js
{ {
chestid: '12312313' // 宝箱id chestId: '12312313' // 宝箱id
} }
``` ```

View File

@ -42,7 +42,8 @@ class BoxController extends BaseController {
@router('post /api/chest/enhance/list') @router('post /api/chest/enhance/list')
async enhanceList(req) { async enhanceList(req) {
const user = req.user const user = req.user
const { chestid } = req.query let { chestId, chestid } = req.query
chestid = chestId || chestid
if (!chestid) { if (!chestid) {
throw new ZError(11, 'chestid is required') throw new ZError(11, 'chestid is required')
} }