Commit a52c7b95 by 朱继来

redis锁设置2秒

parent 1981c813
Showing with 1 additions and 1 deletions
......@@ -37,7 +37,7 @@ class CheckRequest
// if ($count > 1) return abort(501, '请勿重新提交!'); // 501服务器不支持当前请求
$lock = Redis::set($key, 1, "nx", "ex", 5); // 5秒内重复点击提交按钮无效
$lock = Redis::set($key, 1, "nx", "ex", 2); // 2秒内重复点击提交按钮无效
if (!$lock) return abort(501, '请勿重新提交!');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment