From a7273030e8281fa03ed02d63d8160bf7ed65ac56 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 16 Jan 2023 17:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=80=9B=E9=80=9B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/community/Community.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 31dd4d76..7a27b035 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -54,20 +54,18 @@ class Community extends BaseController public function lst() { $where = $this->request->params(['keyword', 'topic_id', 'is_hot', 'category_id', 'spu_id']); - $a = true; + if ($where['category_id'] == 69) { + [$page, $limit] = $this->getPage(); + return app('json')->success($this->repository->getApiListTwo($where, $page, $limit, $this->user)); + } if (!$where['category_id']) { unset($where['category_id']); //查询非社区数据 $where['no_category_id'] = 69; - $a = false; } else if ($where['category_id'] == -1) { $where['is_type'] = $this->repository::COMMUNIT_TYPE_VIDEO; unset($where['category_id']); } - if ($a && $where['category_id'] == 69) { - [$page, $limit] = $this->getPage(); - return app('json')->success($this->repository->getApiListTwo($where, $page, $limit, $this->user)); - } $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));