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