增加无dp字段的记录的查询

This commit is contained in:
zhl 2021-04-30 11:21:09 +08:00
parent 7af83ecd45
commit e062aff8d6

View File

@ -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};