更新列表类型展示
This commit is contained in:
parent
408e34c9ad
commit
0c59b0d31d
@ -61,15 +61,15 @@ class Community extends BaseController
|
|||||||
public function lst()
|
public function lst()
|
||||||
{
|
{
|
||||||
$where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type', 'resale_type']);
|
$where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type', 'resale_type']);
|
||||||
|
if (isset($where['category_id']) && $where['category_id'] == 0) {
|
||||||
|
$where['is_type'] = $this->repository::COMMUNIT_TYPE_FONT;
|
||||||
|
}
|
||||||
if (!$where['category_id']) {
|
if (!$where['category_id']) {
|
||||||
unset($where['category_id']);
|
unset($where['category_id']);
|
||||||
} else if ($where['category_id'] == -1) {
|
} else if ($where['category_id'] == -1) {
|
||||||
$where['is_type'] = $this->repository::COMMUNIT_TYPE_VIDEO;
|
$where['is_type'] = $this->repository::COMMUNIT_TYPE_VIDEO;
|
||||||
unset($where['category_id']);
|
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);
|
$where = array_merge($where,$this->repository::IS_SHOW_WHERE);
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
return app('json')->success($this->repository->getApiList($where, $page, $limit, $this->user));
|
return app('json')->success($this->repository->getApiList($where, $page, $limit, $this->user));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user