2019-09-06 23:53:10 +08:00

23 lines
829 B
PHP
Executable File

<?php
namespace wstmart\app\controller;
/**
* ============================================================================
* 关闭提示处理控制器
*/
use think\Controller;
class Switchs extends Controller{
public function __construct(){
parent::__construct();
WSTConf('CONF',WSTConfig());
$this->assign("v",WSTConf('CONF.wstVersion')."_".WSTConf('CONF.wstPcStyleId'));
}
protected function fetch($template = '', $vars = [], $replace = [], $config = []){
$style = WSTConf('CONF.wstappStyle')?WSTConf('CONF.wstappStyle'):'default';
$replace['__APP__'] = str_replace('/index.php','',\think\Request::instance()->root()).'/wstmart/app/view/'.$style;
return $this->view->fetch($style."/".$template, $vars, $replace, $config);
}
public function index(){
return $this->fetch('error_switch');
}
}