更新首页列表推荐内容
This commit is contained in:
parent
7ef7edad6b
commit
026d3ddf3a
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user