From 708d8da0546209365b22e27c56fac41c21d3e67c Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 31 May 2021 19:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=A2=98=E5=BA=93=E6=97=B6,=20groups=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=8F=82=E6=95=B0=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/shop/ShopPuzzle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/shop/ShopPuzzle.ts b/src/models/shop/ShopPuzzle.ts index 3969f88..250e51e 100644 --- a/src/models/shop/ShopPuzzle.ts +++ b/src/models/shop/ShopPuzzle.ts @@ -94,7 +94,7 @@ export class ShopPuzzleClass extends BaseModule { if (sub_tag) { opt.sub_tag = sub_tag } - if (groups) { + if (groups && groups.length > 0) { Object.assign(opt, { groups: { $in: groups } }) } if (quality != undefined) {