lrf 2 jaren geleden
bovenliggende
commit
d0ba639bc4
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/service/view/shop.js

+ 1 - 1
app/service/view/shop.js

@@ -20,7 +20,7 @@ class ShopService extends CrudService {
     const arr = [];
     for (const s of list) {
       const { _id: shop, name, logo } = s;
-      const market_num = await this.ctx.service.shop.goods.count({ shop });
+      const market_num = await this.ctx.service.shop.goods.count({ shop, status: '1' });
       // 收藏
       const follow_num = await this.storeShopModel.count({ shop });
       // 当前用户是否收藏