diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 721089d3..7521361e 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -470,7 +470,7 @@ class Community extends BaseController { [$page, $limit] = $this->getPage(); $status = $this->request->param('status'); - $queryBuilder = Db::name('community')->alias('c')->leftJoin('resale r','c.community_id = r.community_id')->where('c.is_del', 0)->where('c.uid', $this->request->uid()); + $queryBuilder = Db::name('community')->alias('c')->leftJoin('resale r','c.community_id = r.community_id')->where('c.is_type', 3)->where('c.is_del', 0)->where('c.uid', $this->request->uid()); // 在售商品 if ($status == 1) { $queryBuilder->where('c.status', 1)->where('c.is_show', 1)->where(function ($query) {