From 70f46d241b24cb26ebde9bcd8706646b45249648 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Mon, 17 May 2021 17:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9EdataTime=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yipin/liuwanr/service/UserInfoService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java index 0df73e2..fa1c87f 100644 --- a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java +++ b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java @@ -541,8 +541,8 @@ public class UserInfoService { userInfoMapper.updateLogInNumber(user); String token = user.getToken(); ValueOperations redis = stringRedisTemplate.opsForValue(); - //redis.set(token,lastLoginTime, 24, TimeUnit.HOURS); - //user.setDataTime(lastLoginTime); + redis.set(token,lastLoginTime, 24, TimeUnit.HOURS); + user.setDataTime(lastLoginTime); resp.put("retvalue",user); resp.put("retcode", 200); }