Browse Source

Update app.php

邹景立 3 năm trước cách đây
mục cha
commit
b4903935a1
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      config/app.php

+ 4 - 4
config/app.php

@@ -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',
+    ],
 ];