assign("v",WSTConf('CONF.wstVersion')."_".WSTConf('CONF.wstPCStyleId')); } protected function fetch($template = '', $vars = [], $replace = [], $config = []){ $style = WSTConf('CONF.wsthomeStyle')?WSTConf('CONF.wsthomeStyle'):'default'; $replace['__STYLE__'] = str_replace('/index.php','',\think\Request::instance()->root()).'/hyhproject/home/view/'.$style; return $this->view->fetch($style."/".$template, $vars, $replace, $config); } public function index(){ return $this->fetch('error_switch'); } }