session()->get('userInfo'); if(empty($userInfo)){ return redirect('manage'); } if($userInfo['is_admin'] != 1){ return redirect('https://s1-hn.aghcdn.com/activity/common/page/crowd/errEvir.html?error='.urlencode('无权访问')); } return $next($request); } }