|
@@ -41,11 +41,11 @@ return [
|
|
|
'cors_methods' => 'GET,PUT,POST,PATCH,DELETE',
|
|
|
// CORS 跨域头部字段
|
|
|
'cors_headers' => 'Api-Type,Api-Name,Api-Uuid,Api-Token,User-Form-Token,User-Token,Token',
|
|
|
- // 异常模板路径配置
|
|
|
+ // 异常模板路径配置,仅开发模式有效
|
|
|
'exception_tmpl' => app()->getAppPath() . 'admin/view/error.php',
|
|
|
- // 异常状态模板配置,非开发模式有效
|
|
|
+ // 异常状态模板配置,仅生产模式有效
|
|
|
'http_exception_template' => [
|
|
|
404 => app()->getRootPath() . 'public/static/theme/err/404.html',
|
|
|
- 500 => app()->getRootPath() . 'public/static/theme/err/500.html'
|
|
|
- ]
|
|
|
+ 500 => app()->getRootPath() . 'public/static/theme/err/500.html',
|
|
|
+ ],
|
|
|
];
|