From df31471aea48346554ca418153a61bbf31d560b4 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 17 Aug 2023 14:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0community=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/community/CommunityRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);