redirect(request()->domain().'/index.php?i='.UNIACID.'&route=index#/'); exit; } } global $_W,$_GPC; $SCHEME = 'http'; if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){ $SCHEME = 'https'; } if(isset($SCHEME['REQUEST_SCHEME'])){ $SCHEME = $SCHEME['REQUEST_SCHEME']; } $url = $SCHEME."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $config = \app\common\model\app\Config::getConfig("pc_pc"); if(!isset($config['x_icon'])){ $config['x_icon'] = ''; } if(!isset($config['status'])){ $config['status'] = 1; } if(!$config['status']){ return $this->view->fetch('close'); } $meta = (new \app\api\model\app\pc\Seo())->getMeta(); $this->view->assign('url', $url); $this->view->assign('gpc', $_GPC); $this->view->assign('pc_config', $config); $this->view->assign('w', $_W); $this->view->assign('meta', $meta); return $this->view->fetch(); } }