diff --git a/app/common/repositories/community/CommunityRepository.php b/app/common/repositories/community/CommunityRepository.php index c32a45d3..81d8797c 100644 --- a/app/common/repositories/community/CommunityRepository.php +++ b/app/common/repositories/community/CommunityRepository.php @@ -106,7 +106,8 @@ class CommunityRepository extends BaseRepository public function getApiList(array $where, int $page, int $limit, $userInfo) { $config = systemConfig("community_app_switch"); - if (!isset($where['is_type']) && $config) $where['is_type'] = is_array($config) ? implode(',', $config) : $config; + // if (!isset($where['is_type']) && $config) $where['is_type'] = is_array($config) ? implode(',', $config) : $config; + if (empty($where['is_type'])) $where['is_type'] = '1,2'; $where['is_del'] = 0; $query = $this->dao->search($where)->when(in_array(self::COMMUNITY_TYPE_RESALE, explode(',', $where['is_type'])), function ($query) { $query->where('is_sale', 0);