添加日志

This commit is contained in:
zhaolongfei
2024-11-08 18:45:14 +08:00
parent cb9e94ce5e
commit 425a1edf01

View File

@@ -129,6 +129,8 @@ public class CourseWareApi extends ApiBaseController {
// return badRequest("不支持的请求");
// }
String userInfo = CacheName.NAME_INFO + ":"+ token;
log.info("请求头里的token值:"+token);
log.info("从 Redis 获取的userInfo:"+userInfo);
Object o = redisTemplate.opsForValue().get(userInfo);
if (o == null) {
log.error("从 Redis 获取的值为 null ,", userInfo);