diff --git a/app/common/dao/community/CommunityDao.php b/app/common/dao/community/CommunityDao.php index f4f81d9f..2176c668 100644 --- a/app/common/dao/community/CommunityDao.php +++ b/app/common/dao/community/CommunityDao.php @@ -73,6 +73,8 @@ class CommunityDao extends BaseDao }) ->when(isset($where['category_id']) && $where['category_id'] !== '', function ($query) use($where) { $query->where('Community.category_id',$where['category_id']); + })->when(isset($where['no_category_id']) && $where['no_category_id'] ==69, function ($query) use($where) { + $query->where('Community.category_id','<>',69); }); $order = 'Community.create_time DESC';