Update app.php

This commit is contained in:
邹景立 2022-05-02 19:25:22 +08:00
parent e6e3c77e22
commit b4903935a1

View File

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