Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复全局配置config/captcha.php 使 think-captcha 支持tp5.1的全局配置,tp5.1的 Config::… #20

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from

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