public function _initialize(){
echo 'dddd';exit;
if(is_login()){
$this->user_id=session('user_id');
$this->type=session('type');
}elseif(empty($_GET['weixin_key'])){
not_login();
}else{
echo 'dd';exit;
login($_GET['weixin_key']);
}
}
子类 public function _initialize(){
echo 'index';exit;
//dump($_SESSION);exit;
if(is_user_login()){
$this->user_id=session('user_id');
$this->type=session('type');
}elseif(empty($_GET['weixin_key'])){
not_login();
}else{
login($_GET['weixin_key']);
}
}
输出的是index,未输出dd,要怎么解决呢? 最佳答案
