1 $this -> success('登录成功','../Admin/admin'); $this->success('用户登录成功',U('Index/index')); 2.$this->redirect('Index/index');