From 41e1c85e90a2cf4c786f6eeaaac9beee2d67197a Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 8 Feb 2021 16:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=89=A9=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=97=B6,=20=E5=8F=AA=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=A4=A7=E4=BA=8E0=E7=9A=84=E7=89=A9=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ItemController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ItemController.ts b/src/controllers/ItemController.ts index 1155864..d02ad47 100644 --- a/src/controllers/ItemController.ts +++ b/src/controllers/ItemController.ts @@ -11,7 +11,7 @@ export default class ItemController extends BaseController { @router('post /api/:accountid/items') async itemList(req: any) { let { accountid, type, items } = req.params - let queryData: any = { accountid } + let queryData: any = { accountid, count: {$gt: 0} } if (type != undefined) { queryData.itemtype = type << 0 }