lrf 2 년 전
부모
커밋
d0ba639bc4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 });
       // 当前用户是否收藏