From 4593b54fc8830a8da187aedd0c2f7167494b9b2c Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 17 Jul 2019 17:11:42 +0800 Subject: [PATCH] Update Auth.php --- application/admin/controller/Auth.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/admin/controller/Auth.php b/application/admin/controller/Auth.php index 87cedf33c..d27a624c0 100644 --- a/application/admin/controller/Auth.php +++ b/application/admin/controller/Auth.php @@ -18,7 +18,6 @@ namespace app\admin\controller; use app\admin\service\NodeService; use library\Controller; use think\Db; -use think\exception\HttpResponseException; /** * 系统权限管理 @@ -118,7 +117,7 @@ class Auth extends Controller try { NodeService::applyUserAuth(true); $this->success('刷新系统授权成功!'); - } catch (HttpResponseException $exception) { + } catch (\think\exception\HttpResponseException $exception) { throw $exception; } catch (\Exception $e) { $this->error("刷新系统授权失败
{$e->getMessage()}");