Commit a758e524 authored by feng.tang's avatar feng.tang

添加日志验证测试环境redis 或者mq的响应时长

parent 3bd1f69a
......@@ -156,7 +156,9 @@ public class SessionServiceImpl implements ISessionService {
userRereset.setRegisteredFrom(properties.getCreatedFrom());
UserStatistics statistics = new UserStatistics(userRereset, null, properties.getAction(), properties.getChannelId());
// 推送老的登陆统计信息
log.info("登录准备发送mq");
MqUtils.sendLoanVest(statistics);
log.info("登录发送mq结束");
return sessionStruct;
}
......@@ -171,9 +173,11 @@ public class SessionServiceImpl implements ISessionService {
Timestamp current = new Timestamp(System.currentTimeMillis());
sessionValue.setLastAccessTime(current);
String json = JSON.toJSONString(sessionValue);
log.info("[Session生命期延续--1],token:{},有效期:[24Hour]", token);
stringRedisTemplate.opsForValue().set(Constants.Session.USER_SESSION_CACHE + token, json,
time, TimeUnit.SECONDS);
String key = generateLoginPropertiesKey(sessionValue.getUser().getId(), sessionValue.getLoginProperties());
log.info("[Session生命期延续--2],token:{},有效期:[24Hour]", token);
stringRedisTemplate.opsForValue().set(key, token, time, TimeUnit.SECONDS);
log.info("[Session生命期延续],token:{},有效期:[24Hour]", token);
setUserIdTokenKeys(sessionValue.getUser().getId(), key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment