|
|
@ -493,7 +493,7 @@ public class UserInfoService { |
|
|
|
userInfoMapper.updateLogInNumber(user); |
|
|
|
userInfoMapper.updateLogInNumber(user); |
|
|
|
String token = user.getToken(); |
|
|
|
String token = user.getToken(); |
|
|
|
ValueOperations<String, String> redis = stringRedisTemplate.opsForValue(); |
|
|
|
ValueOperations<String, String> redis = stringRedisTemplate.opsForValue(); |
|
|
|
redis.set(token,lastLoginTime, 30 * 60, TimeUnit.SECONDS); |
|
|
|
redis.set(token,lastLoginTime, 24, TimeUnit.HOURS); |
|
|
|
user.setDataTime(lastLoginTime); |
|
|
|
user.setDataTime(lastLoginTime); |
|
|
|
resp.put("retvalue",user); |
|
|
|
resp.put("retvalue",user); |
|
|
|
resp.put("retcode", 200); |
|
|
|
resp.put("retcode", 200); |
|
|
|