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

配置文件修改length后会导致math验证图片显示不完整 #52

Open
linjialiang opened this issue Mar 21, 2020 · 0 comments
Open

Comments

@linjialiang
Copy link

配置文件修改length后会导致math验证图片显示不完整

问题出在: generate() 方法下的 $this->length = 5; 对 create() 方法无效

protected function generate(): array
{
    $bag = '';

    if ($this->math) {
        $this->length = 5;

我是这样解决的:在 create() 方法下增加一个$this->length = 5;

public function create(string $config = null, bool $api = false): Response
{
    $this->configure($config);

    if($this->math){
        $this->length = 5;
    }
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

No branches or pull requests

1 participant