mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
图片验证码精度优化
This commit is contained in:
parent
b7b256dc62
commit
f4b5370c2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user