|
@@ -46,7 +46,7 @@ class ContentService extends Service {
|
|
|
throw error;
|
|
|
}
|
|
|
}
|
|
|
- async query({ skip, limit, title, date, bind, keywords, svip, isShow, status, istop, parentCode }) {
|
|
|
+ async query({ skip, limit, title, date, bind, keywords, svip, isShow, status, istop, parentCode, recommend }) {
|
|
|
if (parentCode) {
|
|
|
const menus = await this.service.menu.menuList({ code: parentCode });
|
|
|
const filter = { bind: { $in: menus } };
|
|
@@ -72,6 +72,7 @@ class ContentService extends Service {
|
|
|
filter.$or.push(JSON.parse(datas));
|
|
|
}
|
|
|
}
|
|
|
+ if (recommend) filter.recommend = recommend;
|
|
|
if (bind) filter.bind = bind;
|
|
|
try {
|
|
|
let res;
|