From e7eaea83e4d5dd96bdbc52281fb8b0766643d4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Wed, 10 Sep 2025 17:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E4=B9=90=E4=BC=9A=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4.-=E9=94=81=E8=A1=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common.php b/application/common.php index 2269b62..c84be3d 100644 --- a/application/common.php +++ b/application/common.php @@ -805,7 +805,7 @@ function redis_lock_exit($key, $value = 1, $time = 5) $redis = \think\Cache::store('redis')->handler(); $is_lock = $redis->setnx($key, $value); if (!$is_lock) { - return V(0, '访问频繁,请稍后重试'); + return V(0, '您的手速太快了!'); } else { $redis->setex($key, $time, $value); return true; @@ -827,7 +827,7 @@ function redis_lock_exits($key, $value = 1, $time = 5) // 尝试加锁(设置一个带过期时间的 key,仅当 key 不存在时才设置成功) $is_lock = Cache::has($key); if ($is_lock) { - return V(0, '访问频繁,请稍后重试'); + return V(0, '您的手速太快了!'); } else { Cache::set($key, $value, $time); return true;