更新首页列表推荐内容

This commit is contained in:
yaooo 2023-08-30 12:56:26 +08:00
parent 7ef7edad6b
commit 026d3ddf3a

View File

@ -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));