联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
怎么设置验证码背景透明
类型:POSCMS 更新时间:2021-07-05 13:12:39 验证码

网上查了一下

$background = imagecolorallocate($this->img, hexdec(substr($this->background, 1, 2)), hexdec(substr($this->background, 3, 2)), hexdec(substr($this->background, 5, 2)))

换成了

$background = imagecolorallocatealpha($this->img, 255, 255, 255, 127);

结果验证码背景色变成了纯黑色,请问大家应该怎么改


附件已上传,最好帮我改好发过来,谢谢!

Captcha.zip