更新文章类别

This commit is contained in:
yaooo 2023-08-30 11:31:46 +08:00
parent d1c6852d1f
commit 43a26eb143

View File

@ -81,6 +81,8 @@ class ArticleCategoryDao extends BaseDao
$query->where('status', $where['status']);
})->when(isset($where['pid']) && $where['pid'] !== '', function ($query) use ($where) {
$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');
}