作者 赵彬吉

update

... ... @@ -62,7 +62,7 @@ class MenuLogic extends BaseLogic
public function getAllMenu(){
$map[] = ['type' => Menu::TYPE_MENU];
$map[] = ['status' => Menu::STATUS_NORMAL];
$list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type'], 0);
$list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type', 'menu_path'], 0);
return $this->success(Arr::listToTree($list));
}
... ... @@ -71,7 +71,7 @@ class MenuLogic extends BaseLogic
$map[] = ['type' => Menu::TYPE_MENU];
$map[] = ['status' => Menu::STATUS_NORMAL];
$map[] = ['id', 'in', $rights];
$list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type'], 0);
$list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type', 'menu_path'], 0);
return $this->success(Arr::listToTree($list));
}
}
... ...