//防止重复登录
protected function logined(){
if (Session::has('kt_user_id')){
// $this->getResponseType();
// $this->redirect('index/index','',200);
dump('已经登录了');
$redurl = '<script language=\'javascript\'>parent.window.open(\'http://192.168.2.191/index/index/index\', \'_top\');</script>';
// dump($redurl);exit();
echo $redurl;
exit();
}
}这里url是我手动写进去的,有没有模板那种,自动识别的。{:u} 这种的呢 最佳答案