Commit 862cc249 by chamberone

fix: add logs

1 parent 4f355a73
......@@ -102,6 +102,12 @@ public class UserService {
userDTO.setToken(token);
long timestamp = System.currentTimeMillis() + LIVE_TIME_MILLIS;
redisService.set(RedisKeyGroup.authToken + ":" + token, userDTO, timestamp / 1000);
log.info("test begin");
UserLoginDTO userDTO2 = (UserLoginDTO)redisService.get(RedisKeyGroup.authToken + ":" + token);
log.info("test {}",userDTO2);
return Result.success(userDTO);
} else {
return Result.failed("鉴权失败");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!