From 16a2b9e181b17e3d08000ec1d8cb6e60633eae7c Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 02 十二月 2021 16:36:29 +0800 Subject: [PATCH] tomcat update --- src/main/java/com/ruoyi/framework/config/RedisConfig.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ruoyi/framework/config/RedisConfig.java b/src/main/java/com/ruoyi/framework/config/RedisConfig.java index 322d6e3..fe1822f 100644 --- a/src/main/java/com/ruoyi/framework/config/RedisConfig.java +++ b/src/main/java/com/ruoyi/framework/config/RedisConfig.java @@ -68,12 +68,12 @@ "local time = tonumber(ARGV[2])\n" + "local current = redis.call('get', key);\n" + "if current and tonumber(current) > count then\n" + - " return current;\n" + + " return tonumber(current);\n" + "end\n" + "current = redis.call('incr', key)\n" + "if tonumber(current) == 1 then\n" + " redis.call('expire', key, time)\n" + "end\n" + - "return current;"; + "return tonumber(current);"; } } -- Gitblit v1.9.3