代码更新

This commit is contained in:
2019-09-05 10:51:32 +08:00
parent e88ea9fb8f
commit db04a9c4e5
4 changed files with 3 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
/.idea
/.vscode
/vendor
/bak
*.log
.env

View File

@@ -1,5 +1,5 @@
<?php
// 全局中间件定义文件
return [
// 全局请求缓存
// \think\middleware\CheckRequestCache::class,

View File

@@ -28,9 +28,7 @@ return [
'default_timezone' => 'Asia/Shanghai',
// 异常页面的模板文件
// 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
'exception_tmpl' => app()->getRootPath() . 'view/error.tpl',
// 'exception_tmpl' => app()->getAppPath() . 'view/exception.html',
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',

View File

@@ -16,7 +16,6 @@ return [
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DIRECTORY_SEPARATOR,
'tpl_cache' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记