不用$this->error跳转

if (!session('userid')) {

$url = "http://".$_SERVER ['HTTP_HOST']."/index/login/";

header("refresh:1;url=$url");

}

猜你喜欢

转载自blog.csdn.net/lmp5023/article/details/88682328