Commit d034a7eb by “Kongxiangkun”

评论,收藏,点赞 埋点修改

parent b1ae4b10
......@@ -109,12 +109,15 @@ public class StudyCaseController {
public Response<Object> favorite(HttpServletRequest request, @ApiParam(value = "学员案例id", required = true) @RequestParam(name = "studentCaseId", required = true) Long studentCaseId) {
try {
if (studyCaseClient.favorite(studentCaseId)) {
boolean result = studyCaseClient.favorite(studentCaseId);
LOGGER.info("############学习案例收藏favorite结果:{}", result);
if (result) {
RequestContext context = ContextHolder.get();
IdOneVO idOneVO =new IdOneVO();
idOneVO.setId(studentCaseId);
idOneVO.setContext(context);
InformationViewVO viewVO = informationStudentFeignClients.getInformation(idOneVO);
LOGGER.info("############学习案例收藏成功,添加埋点:{}", "event_favorite_"+viewVO.getTypeOne());
// 添加点赞埋点
//if(request.getHeader("Cookie")!=null&& Objects.equals(redisCache.get(request.getHeader("Cookie").replace("JSESSIONID=","")),"2")){
eventTrackApiClients.addEvent("event_favorite_"+viewVO.getTypeOne(),studentCaseId);
......
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