diff --git a/src/Captcha.php b/src/Captcha.php index 092ab4f..c714cf7 100644 --- a/src/Captcha.php +++ b/src/Captcha.php @@ -243,7 +243,7 @@ public function create(string $config = null) if ($this->api) { return [ 'code' => implode('', $text), - 'img' => 'data:image/png;base64,' . chunk_split(base64_encode($content)), + 'img' => 'data:image/png;base64,' . base64_encode($content), ]; } // 输出验证码图片