Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多次刷新验证码,可能出现500错误 #266

Closed
haha357 opened this issue Feb 5, 2023 · 0 comments
Closed

多次刷新验证码,可能出现500错误 #266

haha357 opened this issue Feb 5, 2023 · 0 comments

Comments

@haha357
Copy link

haha357 commented Feb 5, 2023

$red = abs(min(255,$red - $increase));

多次刷新验证码,可能出现500错误,原因是$red, $green, $blue三个参数可能超出255。
可按以下修改解决。
$red = abs(min(255,abs($red - $increase)));
$green = abs(min(255,abs($green - $increase)));
$blue = abs(min(255,abs($blue - $increase)));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants