From 57abdd4fd961c538c707e9ef26b07f53f548f2f4 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 22 Apr 2020 06:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/index/controller/Index.php | 40 -------------------------------- 1 file changed, 40 deletions(-) diff --git a/catch/index/controller/Index.php b/catch/index/controller/Index.php index 9f54258..b64da43 100644 --- a/catch/index/controller/Index.php +++ b/catch/index/controller/Index.php @@ -1,51 +1,11 @@ user(); - - $permissionIds = $user->getPermissionsBy(); - - $menus = Permissions::whereIn('id', $permissionIds) - ->where('type', Permissions::MENU_TYPE) - ->field(['id', 'parent_id', 'permission_name', 'route']) - ->select()->toArray(); - - return $this->fetch([ - 'menus' => Tree::done($menus), - 'username' => $user->username, - ]); - } - - /** - * - * @time 2019年12月11日 - * @throws \Exception - * @return string - */ - public function theme(): string - { - return $this->fetch(); - } - /** * * @time 2019年12月12日