From 74ed5ef8e6b7a7cff977a128d53fc58fa0b33217 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 16 Aug 2023 10:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=89=93=E6=8A=98=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/community/CommunityRepository.php | 2 +- app/controller/api/community/Community.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/repositories/community/CommunityRepository.php b/app/common/repositories/community/CommunityRepository.php index 228973fa..7d9a252d 100644 --- a/app/common/repositories/community/CommunityRepository.php +++ b/app/common/repositories/community/CommunityRepository.php @@ -129,7 +129,7 @@ class CommunityRepository extends BaseRepository ]); $count = $query->count(); $list = $query->page($page, $limit)->setOption('field',[]) - ->field('community_id,title,image,topic_id,Community.count_start,count_reply,start,Community.create_time,Community.uid,Community.status,is_show,content,video_link,is_type,refusal') + ->field('community_id,title,image,resale_type,topic_id,Community.count_start,count_reply,start,Community.create_time,Community.uid,Community.status,is_show,content,video_link,is_type,refusal') ->select()->append(['time']); if ($list) $list = $list->toArray(); diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index dc060b1e..598cd7da 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -59,7 +59,7 @@ class Community extends BaseController */ public function lst() { - $where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type']); + $where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type', 'resale_type']); if (!$where['category_id']) { unset($where['category_id']); } else if ($where['category_id'] == -1) {