You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
22
hyhproject/mobile2/controller/Switchs.php
Executable file
22
hyhproject/mobile2/controller/Switchs.php
Executable file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace wstmart\mobile\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.wstmobileStyle')?WSTConf('CONF.wstmobileStyle'):'default';
|
||||
$replace['__MOBILE__'] = str_replace('/index.php','',\think\Request::instance()->root()).'/hyhproject/mobile/view/'.$style;
|
||||
return $this->view->fetch($style."/".$template, $vars, $replace, $config);
|
||||
}
|
||||
public function index(){
|
||||
return $this->fetch('error_switch');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user