app.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 应用设置
  4. // +----------------------------------------------------------------------
  5. return [
  6. // 应用地址
  7. 'app_host' => env('app.host', ''),
  8. // 应用的命名空间
  9. 'app_namespace' => '',
  10. // 是否启用路由
  11. 'with_route' => true,
  12. // 默认应用
  13. 'default_app' => 'home',
  14. // 默认时区
  15. 'default_timezone' => 'Asia/Shanghai',
  16. //授权域名
  17. 'auth_host' => 'oa.a.gougucms.com',
  18. //授权key
  19. 'auth_key' => 'YcXACHWh0s',
  20. //授权码
  21. 'auth_code' => 'o8aH.naS.4g8o7uwgkuKclmGsO.5c6oWmiY5cIXjAMCFHoW5ha0lslmkoabii9lteNERxeXYrUDByeFhBeFE9PQ==',
  22. // 应用映射(自动多应用模式有效)
  23. 'app_map' => [],
  24. // 域名绑定(自动多应用模式有效)
  25. 'domain_bind' => [],
  26. // 禁止URL访问的应用列表(自动多应用模式有效)
  27. 'deny_app_list' => [],
  28. // 默认全局过滤方法 用逗号分隔多个
  29. 'default_filter' => 'htmlspecialchars',
  30. // 异常页面的模板文件
  31. 'exception_tmpl' => app()->getRootPath() . '/public/tpl/think_exception.tpl',
  32. // 默认跳转页面对应的模板文件【新增】
  33. 'dispatch_success_tmpl' => app()->getRootPath() . '/public/tpl/dispatch_jump.tpl',
  34. 'dispatch_error_tmpl' => app()->getRootPath() . '/public/tpl/dispatch_jump.tpl',
  35. // 错误显示信息,非调试模式有效
  36. 'error_message' => '😔错误~',
  37. // 显示错误信息
  38. 'show_error_msg' => false,
  39. 'page_size' => 20,//分页默认数据长度
  40. 'file_size' => 50,//附件大小50M
  41. 'session_user' => 'gougu_user',
  42. 'session_admin' => 'gougu_admin',
  43. 'http_exception_template' => [
  44. // 登录失败
  45. 401 => public_path() . 'tpl/401.html',
  46. // 禁止访问
  47. 403 => public_path() . 'tpl/403.html',
  48. // 无法找到文件
  49. 404 => public_path() . 'tpl/404.html',
  50. // 无权限访问
  51. 405 => public_path() . 'tpl/405.html',
  52. // 找不到数据
  53. 406 => public_path() . 'tpl/406.html',
  54. //内部服务器错误
  55. 500 => public_path() . 'tpl/500.html',
  56. ]
  57. ];