diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 0000000..6b50222 --- /dev/null +++ b/config/.gitignore @@ -0,0 +1 @@ +database.php \ No newline at end of file diff --git a/config/app.php b/config/app.php index 18feded..45ca00d 100644 --- a/config/app.php +++ b/config/app.php @@ -29,7 +29,7 @@ return [ 'deny_app_list' => [], // 异常页面的模板文件 - 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', + 'exception_tmpl' => '../veiw/404.html', // 错误显示信息,非调试模式有效 'error_message' => '页面错误!请稍后再试~',