|
|
@@ -255,7 +255,7 @@ class SystemMenus extends AuthController
|
|
|
public function ruleList()
|
|
|
{
|
|
|
//获取所有的路由
|
|
|
- $ruleList = app()->make(SystemRouteServices::class)->selectList(['app_name' => 'adminapi'], 'name,path,method,type');
|
|
|
+ $ruleList = app()->make(SystemRouteServices::class)->selectList(['app_name' => 'adminapi'], 'name,path,method,type,id');
|
|
|
$menuApiList = $this->services->getColumn(['auth_type' => 2, 'is_del' => 0], "concat(`api_url`,'_',lower(`methods`)) as rule");
|
|
|
if ($menuApiList) $menuApiList = array_column($menuApiList, 'rule');
|
|
|
$list = [];
|