From e062aff8d6f1c00bca84fd997d664350a229bf9c Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 30 Apr 2021 11:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A0dp=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=9A=84=E8=AE=B0=E5=BD=95=E7=9A=84=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/content/Puzzle.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/content/Puzzle.ts b/src/models/content/Puzzle.ts index de93758..ba7b89d 100644 --- a/src/models/content/Puzzle.ts +++ b/src/models/content/Puzzle.ts @@ -73,7 +73,11 @@ class PuzzleClass extends BaseModule { opt.quality = quality } if (dp != undefined) { - opt.dp = dp + if (dp == 'none') { + opt.dp = {$exists: false} + } else { + opt.dp = dp + } } if (timeBegin && !timeEnd) { opt.createtime = {$gte: timeBegin};