fix bug for param name of enhanceList
This commit is contained in:
parent
97fc6fb7bf
commit
15cf7d8449
@ -501,7 +501,7 @@ body:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
chestid: '12312313' // 宝箱id
|
chestId: '12312313' // 宝箱id
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -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')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user