verify_code.php 557 B

12345678910111213141516171819
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * 验证码配置
  5. * @link https://www.hyperf.io
  6. * @document https://hyperf.wiki
  7. * @contact group@hyperf.io
  8. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  9. */
  10. return [
  11. 'default' => [
  12. 'expire'=> 180, // 有效时间
  13. 'curve' => true, // 混淆曲线
  14. 'noise' => true, // 噪点
  15. 'backColor' => '#ecf2f4', // 背景颜色
  16. 'fontColors'=> ['#2c3e50', '#c0392b', '#16a085', '#c0392b', '#8e44ad', '#303f9f', '#f57c00', '#795548'] // 字体颜色
  17. ],
  18. ];