check() == false) { die('未登录'); } //否则继续处理当前请求 return $next($request); } }