diff --git a/app/common/repositories/community/CommunityRepository.php b/app/common/repositories/community/CommunityRepository.php index ee931ed2..449a9f71 100644 --- a/app/common/repositories/community/CommunityRepository.php +++ b/app/common/repositories/community/CommunityRepository.php @@ -99,7 +99,6 @@ class CommunityRepository extends BaseRepository $config = systemConfig("community_app_switch"); if (!isset($where['is_type']) && $config) $where['is_type'] = is_array($config) ? implode(',', $config) : $config; $where['is_del'] = 0; - // print_r($where); $query = $this->dao->search($where)->when(in_array(self::COMMUNITY_TYPE_RESALE, explode(',', $where['is_type'])), function ($query) { $query->where('is_sale', 0); })->order('start DESC,Community.create_time DESC,community_id DESC'); diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 4db61fc0..2ec4d5cb 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2445,6 +2445,8 @@ class ProductRepository extends BaseRepository { $merId = Db::name('store_service')->where('uid', $where['uid'])->where('status', 1)->value('mer_id', 0); unset($where['uid']); + $where['status'] = 1; + $where['is_show'] = 1; $query = $this->dao->search($merId, $where)->with(['merCateId.category', 'storeCategory', 'brand', 'attrValue']); $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->filed)->select();