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));