后台管理升级完成

This commit is contained in:
devil_gong
2018-12-24 17:40:42 +08:00
parent def2a12fa1
commit f78bc4fed3
18 changed files with 137 additions and 380 deletions

View File

@ -1,5 +1,4 @@
<?php
namespace app\admin\controller;
/**
@ -39,23 +38,26 @@ class Cache extends Common
*/
public function Index()
{
// 缓存类型
$this->assign('cache_type_list', lang('cache_type_list'));
$this->display('Index');
return $this->fetch();
}
/**
* [SiteUpdate 站点缓存更新]
* [StatusUpdate 站点缓存更新]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-26T19:53:14+0800
*/
public function SiteUpdate()
public function StatusUpdate()
{
\base\FileUtil::UnlinkDir(TEMP_PATH);
\base\FileUtil::UnlinkDir(DATA_PATH);
\base\FileUtil::UnlinkFile(RUNTIME_PATH.'common~runtime.php');
$this->success('更新成功');
// 模板 cache
// 数据 temp
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'cache');
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'temp');
return $this->success('更新成功');
}
/**
@ -67,10 +69,10 @@ class Cache extends Common
*/
public function TemplateUpdate()
{
// 模板 Cache
\base\FileUtil::UnlinkDir(CACHE_PATH);
// 模板 cache
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'cache');
$this->success('更新成功');
return $this->success('更新成功');
}
/**
@ -82,7 +84,21 @@ class Cache extends Common
*/
public function ModuleUpdate()
{
$this->success('更新成功');
return $this->success('更新成功');
}
/**
* [LogDelete 日志删除]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-26T19:53:14+0800
*/
public function LogDelete()
{
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'log');
return $this->success('更新成功');
}
}
?>

View File

@ -73,7 +73,7 @@ class Goods extends Common
$data = GoodsService::GoodsList($data_params);
// 是否上下架
$this->assign('common_goods_is_shelves_list', lang('common_goods_is_shelves_list'));
$this->assign('common_is_shelves_list', lang('common_is_shelves_list'));
// 是否首页推荐
$this->assign('common_is_text_list', lang('common_is_text_list'));

View File

@ -1,5 +1,4 @@
<?php
namespace app\admin\controller;
/**
@ -55,7 +54,7 @@ class Index extends Common
'mysql_ver' => isset($mysql_ver[0]['ver']) ? $mysql_ver[0]['ver'] : '',
'os_ver' => PHP_OS,
'host' => isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : '',
'ver' => 'ShopXO'.' '.'v1.1.0',
'ver' => 'ShopXO'.' '.APPLICATION_VERSION,
);
$this->assign('data', $data);
return $this->fetch();

View File

@ -57,6 +57,9 @@ class Site extends Common
// 配置信息
$this->assign('data', ConfigService::ConfigList());
// 编辑器文件存放地址
$this->assign('editor_path_type', 'common');
return $this->fetch();
}
@ -70,11 +73,6 @@ class Site extends Common
*/
public function Save()
{
// logo存储
$this->FileSave('home_site_logo', 'home_site_logo_img');
$this->FileSave('home_site_logo_wap', 'home_site_logo_wap_img');
$this->FileSave('home_site_desktop_icon', 'home_site_desktop_icon_img');
// 站点状态值处理
if(!isset($_POST['home_user_reg_state']))
{

View File

@ -1,5 +1,4 @@
<?php
namespace app\admin\controller;
/**