调整代码格式及使用常量去替换常用值
This commit is contained in:
@@ -19,8 +19,8 @@ class GetTopLevelForPermissionController extends BaseController
|
||||
protected function getTopLevelMenus(): array
|
||||
{
|
||||
$where = [
|
||||
'parentId' => 0,
|
||||
'status' => 1
|
||||
'parentId' => MenuModel::TOP_LEVEL,
|
||||
'status' => MenuModel::STATUS_NORMAL
|
||||
];
|
||||
|
||||
return MenuModel::where($where)->field('id, title')->order('sort', 'asc')->select()->toArray();
|
||||
|
||||
Reference in New Issue
Block a user