Skip to content

Commit 0779e52

Browse files
committed
重写全局异常
create
1 parent 4584cfb commit 0779e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
// 显示错误信息
142142
'show_error_msg' => false,
143143
// 异常处理handle类 留空使用 \think\exception\Handle
144-
'exception_handle' => '',
144+
'exception_handle' => '\\app\\api\\exception\\ExceptionHandler',
145145
//某些方法不需要使用接口鉴权,一些公共类方法
146146
'allow_method'=>[
147147
'V1.User/index/get', //post方法允许直接访问

0 commit comments

Comments
 (0)