config.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +---------------------------------------------------------------------+
  3. // | OneBase | [ WE CAN DO IT JUST THINK ] |
  4. // +---------------------------------------------------------------------+
  5. // | Licensed | http://www.apache.org/licenses/LICENSE-2.0 ) |
  6. // +---------------------------------------------------------------------+
  7. // | Author | Bigotry <3162875@qq.com> |
  8. // +---------------------------------------------------------------------+
  9. // | Repository | https://gitee.com/Bigotry/OneBase |
  10. // +---------------------------------------------------------------------+
  11. // 前端配置文件
  12. empty(STATIC_DOMAIN) ? $static = [] : $static['__STATIC__'] = STATIC_DOMAIN . SYS_DS_PROS . SYS_STATIC_DIR_NAME;
  13. return [
  14. //'template' => ['layout_on' => true, 'layout_name' => 'layout'],
  15. // 视图输出字符串内容替换
  16. 'view_replace_str' => $static,
  17. // +----------------------------------------------------------------------
  18. // | 验证码配置
  19. // +----------------------------------------------------------------------
  20. 'captcha' => [
  21. // 验证码字符集合
  22. 'codeSet' => '123456789',
  23. // 验证码字体大小(px)
  24. 'fontSize' => 35,
  25. // 是否画混淆曲线
  26. 'useCurve' => false,
  27. // 验证码图片高度
  28. 'imageH' => 80,
  29. // 验证码图片宽度
  30. 'imageW' => 320,
  31. // 验证码位数
  32. 'length' => 4,
  33. // 验证成功后是否重置
  34. 'reset' => true
  35. ],
  36. ];