|
@@ -20,9 +20,13 @@ class ScaleCategoryController extends BaseController
|
|
|
$sort = '`rank` desc';
|
|
|
$page = request('page', 1);
|
|
|
$limit = request('limit', 20);
|
|
|
-
|
|
|
+ $conditions['enable'] = 1;
|
|
|
return ScaleCategoryFacade::getList($conditions, $fields, $sort, $page, $limit);
|
|
|
}
|
|
|
+ public function tree()
|
|
|
+ {
|
|
|
+ return ScaleCategoryFacade::tree();
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Store a newly created resource in storage.
|