From a0a5bb6afeeac5efa479ab0645756af7186be524 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 16 Jun 2017 11:24:05 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=8A=A0]=E7=B3=BB=E7=BB=9F=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A8=A1=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=ADDebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config.php | 8 +-- application/extra/view/handler.exception.html | 50 +++++++++++++++++++ application/extra/view/handler.jump.html | 49 ++++++++++++++++++ 3 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 application/extra/view/handler.exception.html create mode 100644 application/extra/view/handler.jump.html diff --git a/application/config.php b/application/config.php index 4a5b631be..ed22a7cf0 100644 --- a/application/config.php +++ b/application/config.php @@ -19,7 +19,7 @@ return [ // 应用命名空间 'app_namespace' => 'app', // 应用调试模式 - 'app_debug' => true, + 'app_debug' => false, // 应用Trace 'app_trace' => false, // 应用模式状态 @@ -136,13 +136,13 @@ return [ // 视图输出字符串内容替换 'view_replace_str' => [], // 默认跳转页面对应的模板文件 - 'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl', - 'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl', + 'dispatch_success_tmpl' => APP_PATH . 'extra' . DS . 'view' . DS . 'handler.jump.html', + 'dispatch_error_tmpl' => APP_PATH . 'extra' . DS . 'view' . DS . 'handler.jump.html', // +---------------------------------------------------------------------- // | 异常及错误设置 // +---------------------------------------------------------------------- // 异常页面的模板文件 - 'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl', + 'exception_tmpl' => APP_PATH . 'extra' . DS . 'view' . DS . 'handler.exception.html', // 错误显示信息,非调试模式有效 'error_message' => '页面错误!请稍后再试~', // 显示错误信息 diff --git a/application/extra/view/handler.exception.html b/application/extra/view/handler.exception.html new file mode 100644 index 000000000..790cbbd5e --- /dev/null +++ b/application/extra/view/handler.exception.html @@ -0,0 +1,50 @@ + + + + + <?php echo \think\Lang::get('System Error'); ?> + + + + + + + +
+ +
+

+

+
+
+ + diff --git a/application/extra/view/handler.jump.html b/application/extra/view/handler.jump.html new file mode 100644 index 000000000..d9bfc9e58 --- /dev/null +++ b/application/extra/view/handler.jump.html @@ -0,0 +1,49 @@ + + + + + 跳转提示 + + + +
+ + +

:)

+

+ + +

:(

+

+ + +

+

+ 页面自动 跳转 等待时间: +

+
+ + +