top.location.href='http://".request()->host()."/login'"; } // 检验用户名或密码是否正确 $yz = new \app\login\controller\Index; $yz = $yz->check($username,$password); if($yz['status'] == 0){ echo ""; } return $next($request); } }