From 026d3ddf3ac1831b0b92dcc8ec2cb4fd971bcbb3 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 30 Aug 2023 12:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A6=96=E9=A1=B5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A8=E8=8D=90=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/community/Community.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 7521361e..bcf4cf64 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -67,6 +67,9 @@ class Community extends BaseController $where['is_type'] = $this->repository::COMMUNIT_TYPE_VIDEO; unset($where['category_id']); } + if (isset($where['category_id']) && $where['category_id'] == 0) { + $where['is_type'] = $this->repository::COMMUNIT_TYPE_FONT; + } $where = array_merge($where,$this->repository::IS_SHOW_WHERE); [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->getApiList($where, $page, $limit, $this->user));