diff --git a/docs/uaw.md b/docs/uaw.md index 2b18e97..6d2f571 100644 --- a/docs/uaw.md +++ b/docs/uaw.md @@ -501,7 +501,7 @@ body: ```js { - chestid: '12312313' // 宝箱id + chestId: '12312313' // 宝箱id } ``` diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index 527aed7..8067b36 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -42,7 +42,8 @@ class BoxController extends BaseController { @router('post /api/chest/enhance/list') async enhanceList(req) { const user = req.user - const { chestid } = req.query + let { chestId, chestid } = req.query + chestid = chestId || chestid if (!chestid) { throw new ZError(11, 'chestid is required') }