关闭Debug,修改错误提示

pull/58/head
HFO4 8 years ago
parent c4ecee4897
commit 1af411daee

@ -156,7 +156,7 @@ return [
'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl', 'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',
// 错误显示信息,非调试模式有效 // 错误显示信息,非调试模式有效
'error_message' => '出现错误,我们都有不顺利的时候,请坐和放宽', 'error_message' => '很抱歉,出现错误 :(',
// 显示错误信息 // 显示错误信息
'show_error_msg' => false, 'show_error_msg' => false,
// 异常处理handle类 留空使用 \think\exception\Handle // 异常处理handle类 留空使用 \think\exception\Handle

@ -361,7 +361,9 @@
<?php } else { ?> <?php } else { ?>
<div class="exception"> <div class="exception">
<div class="info"><h1><?php echo htmlentities($message); ?></h1></div> <div class="info"><h1><?php echo htmlentities($message); ?></h1>
<p>我们都有不顺利的时候,请坐和放宽~</p>
</div>
</div> </div>
<?php } ?> <?php } ?>

Loading…
Cancel
Save