public function handle($request, \Closure $next)
{
//halt($request);exit;
if(empty(session('adminAccount')) && !preg_match('/login/',$request->pathinfo())){
//echo'<br>后置中间件<br>';
return redirect((string)url('login/index'))->send();
}
return $next($request);
}
目前中间件跳转已经执行,但是页面还保留在ajax提交页面,没有跳转到登录页