更新文章类别
This commit is contained in:
parent
d1c6852d1f
commit
43a26eb143
@ -81,6 +81,8 @@ class ArticleCategoryDao extends BaseDao
|
|||||||
$query->where('status', $where['status']);
|
$query->where('status', $where['status']);
|
||||||
})->when(isset($where['pid']) && $where['pid'] !== '', function ($query) use ($where) {
|
})->when(isset($where['pid']) && $where['pid'] !== '', function ($query) use ($where) {
|
||||||
$query->where('pid', $where['pid']);
|
$query->where('pid', $where['pid']);
|
||||||
|
})->when(isset($where['is_home']) && $where['is_home'] !== '', function ($query) use ($where) {
|
||||||
|
$query->where('is_home', $where['is_home']);
|
||||||
})->order('sort DESC, article_category_id DESC');
|
})->order('sort DESC, article_category_id DESC');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user