Thinkphp5.0验证码自定义配置设置
1.位置: \application 下config.php,末尾
//分页配置
‘paginate’ => [
‘type’ => ‘bootstrap’,
‘var_page’ => ‘page’,
‘list_rows’ => 15,
],
// 应用配置:验证码
‘captcha’ => [
/验证码字符集合/
// ‘codeSet’ => ‘123456789’,
‘codeSet’ => ‘abcdefghijkmnpqrstuvwxyz’,
/切换为中文验证码/
‘useZh’ => false,
/中文验证字符集合/
‘zhSet’ => ‘沸腾是否连接数量的空间分李四地方了上课的房间’,
/验证码的位数/
‘length’ => 4,
/是否画混淆曲线/
‘useCurve’ => false,
/是否添加杂点/
‘useNoise’ => true,
/是否使用背景图片/
‘useImgBg’ => false,
/验证码字体大小(px)/
‘fontSize’ => 30,
/验证码字体设置,不设置随机获取/
‘fontttf’ => ‘’,
/图片高度/
‘imageH’ => 0,
/图片宽度/
‘imageW’ => 0,
/背景颜色/
‘bg’ => [243,251,254],
/验证成功后是否重置/
‘reset’ => true,
],