更新community列表展示
This commit is contained in:
parent
316aafec10
commit
df31471aea
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user