diff --git a/app/admin/controller/Auth.php b/app/admin/controller/Auth.php index 86eb1822b..3748202c2 100644 --- a/app/admin/controller/Auth.php +++ b/app/admin/controller/Auth.php @@ -30,7 +30,7 @@ class Auth extends Controller * 绑定数据表 * @var string */ - public $table = 'SystemAuth'; + private $table = 'SystemAuth'; /** * 系统权限管理 diff --git a/app/admin/controller/Menu.php b/app/admin/controller/Menu.php index df64e0c7c..27f52eb54 100644 --- a/app/admin/controller/Menu.php +++ b/app/admin/controller/Menu.php @@ -57,7 +57,7 @@ class Menu extends Controller { foreach ($data as &$vo) { if ($vo['url'] !== '#') { - $vo['url'] = trim(sysuri($vo['url']) . (empty($vo['params']) ? '' : "?{$vo['params']}"), '/\\'); + $vo['url'] = trim(url($vo['url'])->build() . (empty($vo['params']) ? '' : "?{$vo['params']}"), '/\\'); } $vo['ids'] = join(',', DataExtend::getArrSubIds($data, $vo['id'])); }