From 4752d306d2a7d7bda7bef37c495be68f382de4ca Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 1 Feb 2023 16:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=A4=BE=E5=8C=BA=E6=8E=A8?= =?UTF-8?q?=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/community/CommunityDao.php | 2 ++ 1 file changed, 2 insertions(+) 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';