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); }