You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

1 year ago
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Captcha配置文件
  4. // +----------------------------------------------------------------------
  5. return [
  6. //验证码位数
  7. 'length' => 4,
  8. // 验证码字符集合
  9. 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
  10. // 验证码过期时间
  11. 'expire' => 1800,
  12. // 是否使用中文验证码
  13. 'useZh' => false,
  14. // 是否使用算术验证码
  15. 'math' => false,
  16. // 是否使用背景图
  17. 'useImgBg' => false,
  18. //验证码字符大小
  19. 'fontSize' => 25,
  20. // 是否使用混淆曲线
  21. 'useCurve' => true,
  22. //是否添加杂点
  23. 'useNoise' => true,
  24. // 验证码字体 不设置则随机
  25. 'fontttf' => '',
  26. //背景颜色
  27. 'bg' => [243, 251, 254],
  28. // 验证码图片高度
  29. 'imageH' => 0,
  30. // 验证码图片宽度
  31. 'imageW' => 0,
  32. // 添加额外的验证码设置
  33. // verify => [
  34. // 'length'=>4,
  35. // ...
  36. //],
  37. ];