From 9b60a9f5447f14ad867c40128b41eab0ca5dea9e Mon Sep 17 00:00:00 2001 From: "zhiyong.ning" <354350178@qq.com> Date: Thu, 18 Mar 2021 15:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7token=E6=9C=89=E6=95=88?= =?UTF-8?q?=E6=9C=9F=E6=94=B9=E4=B8=BA=E4=B8=80=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yipin/liuwanr/service/UserInfoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java index a774325..f382083 100644 --- a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java +++ b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java @@ -493,7 +493,7 @@ public class UserInfoService { userInfoMapper.updateLogInNumber(user); String token = user.getToken(); ValueOperations redis = stringRedisTemplate.opsForValue(); - redis.set(token,lastLoginTime, 30 * 60, TimeUnit.SECONDS); + redis.set(token,lastLoginTime, 24, TimeUnit.HOURS); user.setDataTime(lastLoginTime); resp.put("retvalue",user); resp.put("retcode", 200);