增加维护盅

This commit is contained in:
win10 committed 2020-09-02 12:13:02 +08:00
1 parent d2729c1bf5
commit 9406b4cb7f
8 files changed
+59 -13

No files matched your search

-2
View File
@@ -30,7 +30,6 @@ class Index extends AdminBase
}
public function welcome()
{
@@ -104,5 +103,4 @@ class Index extends AdminBase
// 渲染输出
return $view->fetch('welcome');
}
}
+1 -3
View File
@@ -13,6 +13,4 @@ use think\facade\Route;
// 主页
Route::rule('/','index/index','get'); //主页
Route::rule('welcome','index/welcome','get'); //欢迎页
Route::rule('welcome','index/welcome','get'); //欢迎页
+20 -7
View File
@@ -13,8 +13,6 @@ use think\facade\View;
use app\login\validate\Yanzheng;
// 引用验证类
use think\exception\ValidateException;
// 引用配置类
use think\facade\Config;
class Index
@@ -31,8 +29,8 @@ class Index
session(null);
// 获取系统名称和版本号
$list['webtitle'] = Config::get('shangma.webtitle');
$list['version'] = Config::get('shangma.version');
$list['webtitle'] = config('shangma.webtitle');
$list['version'] = config('shangma.version');
$list['mobile'] = $mobile;
View::assign('list',$list);
@@ -152,15 +150,30 @@ class Index
// 错误页面
public function myerror()
{
// 获取系统名称和版本号
$list['webtitle'] = Config::get('shangma.webtitle');
$list['version'] = Config::get('shangma.version');
$list['webtitle'] = config('shangma.webtitle');
$list['version'] = config('shangma.version');
View::assign('list',$list);
// 渲染输出
return View::fetch();
}
// 系统维护
public function weihu()
{
// 获取系统名称和版本号
$list = [
'shijian' => config('shangma.shijian')
,'shichang' => config('shangma.shichang')
,'webtitle' => '系统维护中'
,'version' => config('shangma.version')
];
View::assign('list',$list);
return View::fetch();
}
}
Loaded 3 of 8 files, more files were not shown because too many files have changed in this diff. Show more