Commit 8bd8d7b8 by 阳浪

埋点优化

parent 85a75982
...@@ -82,7 +82,7 @@ public class InfoStudentController { ...@@ -82,7 +82,7 @@ public class InfoStudentController {
public InformationListPcVo informationPcPageList(HttpServletRequest request, @RequestBody InfoVO infoVO) { public InformationListPcVo informationPcPageList(HttpServletRequest request, @RequestBody InfoVO infoVO) {
RequestContext context = ContextHolder.get(); RequestContext context = ContextHolder.get();
// 添加阅读文章埋点 // 添加阅读文章埋点
if(Objects.equals(redisCache.get(request.getHeader("Cookie").replace("JSESSIONID=","")),"2")){ if(request.getHeader("Cookie")!=null&&Objects.equals(redisCache.get(request.getHeader("Cookie").replace("JSESSIONID=","")),"2")){
eventTrackApiClients.addEvent(String.valueOf(infoVO.getRelationId()),context.getAccountId()); eventTrackApiClients.addEvent(String.valueOf(infoVO.getRelationId()),context.getAccountId());
} }
return informationService.informationPcPageListV2(infoVO); return informationService.informationPcPageListV2(infoVO);
......
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