|
@@ -384,9 +384,9 @@ class GoodsService extends CrudService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- async indexActTagsGoods() {
|
|
|
|
|
|
+ async indexActTagsGoods({ shop }) {
|
|
// 将使用中且展示在首页的查出来排序
|
|
// 将使用中且展示在首页的查出来排序
|
|
- const list = await this.ctx.model.System.ActTags.find({ status: '0', show_index: '0' }).sort({ sort: 1 });
|
|
|
|
|
|
+ const list = await this.ctx.model.System.ActTags.find({ shop, status: '0', show_index: '0' }).sort({ sort: 1 });
|
|
const result = [];
|
|
const result = [];
|
|
for (const t of list) {
|
|
for (const t of list) {
|
|
const { label, value } = t;
|
|
const { label, value } = t;
|