imgcaptcha.php 674 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * 请将该文件放置于config目录
  5. */
  6. use think\facade\Cache;
  7. return [
  8. 'font_file' => '', //自定义字体包路径, 不填使用默认值
  9. //文字验证码
  10. 'click_world' => [
  11. 'backgrounds' => []
  12. ],
  13. //滑动验证码
  14. 'block_puzzle' => [
  15. 'backgrounds' => [], //背景图片路径, 不填使用默认值
  16. 'templates' => [], //模板图
  17. 'offset' => 10, //容错偏移量
  18. ],
  19. //水印
  20. 'watermark' => [
  21. 'fontsize' => 12,
  22. 'color' => '#ffffff',
  23. 'text' => ''
  24. ],
  25. 'cache' => [
  26. 'constructor' => [Cache::class, 'instance']
  27. ]
  28. ];