图片验证码精度优化

This commit is contained in:
gongfuxiang 2022-02-16 14:46:02 +08:00
parent b7b256dc62
commit f4b5370c2d

View File

@ -124,7 +124,7 @@ class Verify
{
$temp_height = $this->height-15;
}
imagestring($this->img, rand(3,5), $k*$each_width+$first, rand(5/100*$this->height,$temp_height), strtoupper($v), $fgcolor);
imagestring($this->img, rand(3,5), intval($k*$each_width+$first), rand(intval(5/100*$this->height), $temp_height), strtoupper($v), $fgcolor);
}
// 种session