diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index 17249d2..cff119e 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -42,10 +42,10 @@ class BoxController extends BaseController { @router('post /api/chest/enhance/list') async enhanceList(req) { const user = req.user - let { chestId, chestid } = req.query + let { chestId, chestid } = req.params chestid = chestId || chestid if (!chestid) { - throw new ZError(11, 'chestid is required') + throw new ZError(11, 'chestId is required') } const chest = await ActivityChest.findById(chestid) if (!chest) {