Skip to content

Commit

Permalink
修正兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 7, 2022
1 parent 1eef371 commit db5be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Captcha.php
Expand Up @@ -178,7 +178,7 @@ public function create(string $config = null, bool $api = false): Response
// 图片高(px)
$this->imageH || $this->imageH = $this->fontSize * 2.5;
// 建立一幅 $this->imageW x $this->imageH 的图像
$this->im = imagecreate($this->imageW, $this->imageH);
$this->im = imagecreate((int) $this->imageW, (int) $this->imageH);
// 设置背景
imagecolorallocate($this->im, $this->bg[0], $this->bg[1], $this->bg[2]);

Expand Down

0 comments on commit db5be36

Please sign in to comment.