用户token有效期改为一天

master
zhiyong.ning 4 years ago
parent 9b60a9f544
commit 144dcb2c5f
  1. 2
      src/main/java/com/yipin/liuwanr/service/UserInfoService.java

@ -453,7 +453,7 @@ public class UserInfoService {
List<Student> studentList = userInfoMapper.queryStudentAll(id,roleId,schoolId); List<Student> studentList = userInfoMapper.queryStudentAll(id,roleId,schoolId);
obj.put("studentList",studentList); obj.put("studentList",studentList);
ValueOperations<String, String> redis = stringRedisTemplate.opsForValue(); ValueOperations<String, String> redis = stringRedisTemplate.opsForValue();
redis.set(token,date, 30 * 60, TimeUnit.SECONDS); redis.set(token,date, 24, TimeUnit.HOURS);
resp.put("retcode", 200); resp.put("retcode", 200);
resp.put("retvalue", obj); resp.put("retvalue", obj);
}else { }else {

Loading…
Cancel
Save