Commit 35f20d67 by 阳浪

埋点优化

parent 3c3124ba
......@@ -317,11 +317,13 @@ public class AuthController {
context.setSiteType(terminalType);
// 新增登录积分
String shortDay = DateUtil.toShortDay(new Date());
pointListenerClients.addPoint("point_login", Long.valueOf(shortDay));
// 添加登录埋点
eventTrackApiClients.addEvent("event_login", context.getAccountId());
logger.info("=================登录session,{}",request.getSession().getId());
redisCache.set(request.getSession().getId(),String.valueOf(terminalType),86400);
if(!redisCache.hasKey(request.getSession().getId())) {
pointListenerClients.addPoint("point_login", Long.valueOf(shortDay));
// 添加登录埋点
eventTrackApiClients.addEvent("event_login", context.getAccountId());
logger.info("=================登录session,{}", request.getSession().getId());
redisCache.set(request.getSession().getId(), String.valueOf(terminalType), 86400);
}
}
ContextHolder.set(context);
logger.info("登陆处理结束");
......
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