mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
新增分类排序
This commit is contained in:
@@ -28,7 +28,7 @@ class Category extends Model
|
||||
|
||||
if(empty(self::$allCategory)){
|
||||
|
||||
$model_list = Category::where('type',$type)->select();
|
||||
$model_list = Category::where('type',$type)->order('sort asc')->select();
|
||||
self::$allCategory = array2level($model_list,0,0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user