You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
33
hyhproject/admin/controller/Base.php
Executable file
33
hyhproject/admin/controller/Base.php
Executable file
@ -0,0 +1,33 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user