mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
新增分类排序
This commit is contained in:
@@ -22,7 +22,7 @@ class Index extends Common
|
||||
$current_category = [];
|
||||
|
||||
if (!empty($this->request->param('category_id'))) {
|
||||
$sub_category = Category::where('pid', $this->request->param('category_id'))->where('type', 3)->select();
|
||||
$sub_category = Category::where('pid', $this->request->param('category_id'))->where('type', 3)->order('sort asc')->select();
|
||||
$current_category = Category::find($this->request->param('category_id'));
|
||||
if (empty($this->request->param('sub_category_id'))) {
|
||||
$categorys = [$this->request->param('category_id')];
|
||||
|
||||
Reference in New Issue
Block a user