Skip to content

Commit

Permalink
修正算术验证码指定长度的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 3, 2019
1 parent 756b83b commit f676383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ protected function generate(): array
$bag = '';

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

$x = random_int(10, 30);
$y = random_int(1, 9);
Expand Down

0 comments on commit f676383

Please sign in to comment.