From 45a7224b9966e0700d87b5ab97153973a4529def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Mon, 23 Dec 2024 17:07:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201.uni-ad=E5=B9=BF=E5=91=8A=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=8E=A5=E5=85=A5=202.=E5=B9=BF=E5=91=8A=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E5=85=8D=E8=B4=B9=E8=A7=82=E7=9C=8B=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sqx/modules/redisService/impl/RedisServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sqx/modules/redisService/impl/RedisServiceImpl.java b/src/main/java/com/sqx/modules/redisService/impl/RedisServiceImpl.java index 351ac5fe..1a9b3ef2 100644 --- a/src/main/java/com/sqx/modules/redisService/impl/RedisServiceImpl.java +++ b/src/main/java/com/sqx/modules/redisService/impl/RedisServiceImpl.java @@ -99,7 +99,7 @@ public class RedisServiceImpl implements RedisService { Integer second = jsonObject.getInteger("second"); if (expireTime == -1) { jsonObject.put("expireTime", DateUtil.offsetSecond(DateUtil.date(), second).getTime()); - redisUtils.set(watchKey, jsonObject.toJSONString()); + redisUtils.set(watchKey, jsonObject.toJSONString(), -1); return false; }else { return DateUtil.current() > expireTime;