diff --git a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java index f382083..54c735e 100644 --- a/src/main/java/com/yipin/liuwanr/service/UserInfoService.java +++ b/src/main/java/com/yipin/liuwanr/service/UserInfoService.java @@ -453,7 +453,7 @@ public class UserInfoService { List studentList = userInfoMapper.queryStudentAll(id,roleId,schoolId); obj.put("studentList",studentList); ValueOperations redis = stringRedisTemplate.opsForValue(); - redis.set(token,date, 30 * 60, TimeUnit.SECONDS); + redis.set(token,date, 24, TimeUnit.HOURS); resp.put("retcode", 200); resp.put("retvalue", obj); }else {