Skip to content

Conversation

@bill-wangwang
Copy link

…pull 会把结果的key全部转成小写,所以 Captcha类的属性原来是驼峰,array_merge 后根本不生效,比如配置文件是 se_key (即使配置为seKey,获取后也变为sekey)

config/captcha.php 内容如下

'0123456789', 'use_curve' => false, 'length' => 4, 'image_h' => 40, 'image_w' => 134, 'font_size' => 20, 'fontttf' => '4.ttf', ];

…pull 会把结果的key全部转成小写,所以 Captcha类的属性原来是驼峰,array_merge 后根本不生效,比如配置文件是 se_key (即使配置为seKey,获取后也变为sekey)

config/captcha.php 内容如下
<?php
return [
    'code_set' => '0123456789',
    'use_curve' => false,
    'length' => 4,
    'image_h' => 40,
    'image_w' => 134,
    'font_size' => 20,
    'fontttf' => '4.ttf',
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant