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