Update Auth.php

This commit is contained in:
Anyon 2019-07-17 17:11:42 +08:00
parent e34db41cdc
commit 4593b54fc8

View File

@ -18,7 +18,6 @@ namespace app\admin\controller;
use app\admin\service\NodeService; use app\admin\service\NodeService;
use library\Controller; use library\Controller;
use think\Db; use think\Db;
use think\exception\HttpResponseException;
/** /**
* 系统权限管理 * 系统权限管理
@ -118,7 +117,7 @@ class Auth extends Controller
try { try {
NodeService::applyUserAuth(true); NodeService::applyUserAuth(true);
$this->success('刷新系统授权成功!'); $this->success('刷新系统授权成功!');
} catch (HttpResponseException $exception) { } catch (\think\exception\HttpResponseException $exception) {
throw $exception; throw $exception;
} catch (\Exception $e) { } catch (\Exception $e) {
$this->error("刷新系统授权失败<br>{$e->getMessage()}"); $this->error("刷新系统授权失败<br>{$e->getMessage()}");