控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

captcha.php 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | Captcha配置文件
  13. // +----------------------------------------------------------------------
  14. return [
  15. //验证码位数
  16. 'length' => 4,
  17. // 验证码字符集合
  18. 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
  19. // 验证码过期时间
  20. 'expire' => 1800,
  21. // 是否使用中文验证码
  22. 'useZh' => false,
  23. // 是否使用算术验证码
  24. 'math' => false,
  25. // 是否使用背景图
  26. 'useImgBg' => false,
  27. //验证码字符大小
  28. 'fontSize' => 18,
  29. // 是否使用混淆曲线
  30. 'useCurve' => true,
  31. //是否添加杂点
  32. 'useNoise' => true,
  33. // 验证码字体 不设置则随机
  34. 'fontttf' => '',
  35. //背景颜色
  36. 'bg' => [243, 251, 254],
  37. // 验证码图片高度
  38. 'imageH' => 38,
  39. // 验证码图片宽度
  40. 'imageW' => 138,
  41. ];