controller(); $action = request()->action(); $auth = new Auth(); if(!$auth->check($controller . '-' . $action, 123)){ return error('你没有权限访问,请联系管理员!' , 401); } return $next($request); } }