|
@@ -60,7 +60,7 @@ class ContentService extends Service {
|
|
|
}
|
|
|
|
|
|
const filter = {};
|
|
|
- const arr = { title, date, bind, keywords, svip, isShow, status, istop };
|
|
|
+ const arr = { title, date, keywords, svip, isShow, status, istop };
|
|
|
for (const e in arr) {
|
|
|
let datas;
|
|
|
if (e === 'keywords') {
|
|
@@ -73,6 +73,7 @@ class ContentService extends Service {
|
|
|
filter.$or.push(JSON.parse(datas));
|
|
|
}
|
|
|
}
|
|
|
+ if (bind) filter.bind = bind;
|
|
|
try {
|
|
|
let res;
|
|
|
const total = await this.model.find({ ...filter }, { content: false });
|