返回dataTime修复

master
jiakun.lin 4 years ago
parent 8334037c81
commit 70f46d241b
  1. 4
      src/main/java/com/yipin/liuwanr/service/UserInfoService.java

@ -541,8 +541,8 @@ public class UserInfoService {
userInfoMapper.updateLogInNumber(user);
String token = user.getToken();
ValueOperations<String, String> 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);
}

Loading…
Cancel
Save