33 lines
860 B
PHP
Executable File
33 lines
860 B
PHP
Executable File
<?php
|
|
namespace wstmart\admin\controller;
|
|
/**
|
|
* ============================================================================
|
|
* 基础控制器
|
|
*/
|
|
use think\Controller;
|
|
class Base extends Controller {
|
|
public function __construct(){
|
|
parent::__construct();
|
|
$this->assign("v",WSTConf('CONF.wstVersion'));
|
|
}
|
|
protected function fetch($template = '', $vars = [], $replace = [], $config = [])
|
|
{
|
|
$replace['__ADMIN__'] = str_replace('/index.php','',\think\Request::instance()->root()).'/hyhproject/admin/view';
|
|
return $this->view->fetch($template, $vars, $replace, $config);
|
|
}
|
|
|
|
public function getVerify(){
|
|
WSTVerify();
|
|
}
|
|
|
|
public function uploadPic(){
|
|
return WSTUploadPic(1);
|
|
}
|
|
|
|
/**
|
|
* 编辑器上传文件
|
|
*/
|
|
public function editorUpload(){
|
|
return WSTEditUpload(1);
|
|
}
|
|
} |