From c63d1ebba37d0cbc1c382adbfeb230445768e758 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 10 Feb 2023 19:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Support/RealNameSupport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Support/RealNameSupport.php b/app/Support/RealNameSupport.php index 9136489..efb1e14 100644 --- a/app/Support/RealNameSupport.php +++ b/app/Support/RealNameSupport.php @@ -127,7 +127,8 @@ public function verify(array $request): array|bool $return = Cache::get('real_name:'.$data['bizNo'], false); - Cache::forget('real_name:'.$data['bizNo']); + // 将 TTL 设置为 10s + Cache::put('real_name:'.$data['bizNo'], $return, 10); return $return; }