think-captcha icon indicating copy to clipboard operation
think-captcha copied to clipboard

5.1RC3读取配置文件合并参数有问题

Open season886 opened this issue 7 years ago • 0 comments

我在config下建立captcha.php里面设置 return [ // 验证码字体大小(px) 'fontSize' => 18, // 是否画混淆曲线 'useCurve' => false, // 验证码图片高度 'imageH' => 34, // 验证码图片宽度 'imageW' => 30, // 验证码位数 'length' => 3 ]; 结果debug了一下,发现会把所有的参数名变成小写,导致 public function __construct($config = []) { $this->config = array_merge($this->config, $config); } 合并不会覆盖默认参数

season886 avatar Nov 22 '17 08:11 season886