mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]强制刷新验证码
This commit is contained in:
parent
3aec231910
commit
3d119013a4
@ -137,9 +137,7 @@ class CaptchaService
|
||||
{
|
||||
$_uni = is_string($uniqid) ? $uniqid : input('uniqid', '-');
|
||||
$_val = Cache::tag('captcha')->get($_uni);
|
||||
if (is_string($_val) && strtolower($_val) === strtolower($code)) {
|
||||
Cache::tag('captcha')->rm($_uni);
|
||||
return true;
|
||||
} else return false;
|
||||
Cache::tag('captcha')->rm($_uni);
|
||||
return is_string($_val) && strtolower($_val) === strtolower($code);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user