Commit cd562f74 by 阳浪

咨询管理

parent 712abfeb
...@@ -202,12 +202,16 @@ public class InformationStudentController { ...@@ -202,12 +202,16 @@ public class InformationStudentController {
@PostMapping("/view") @PostMapping("/view")
@ApiOperation(value = "资讯详情", notes = "资讯详情", response = InformationVO.class) @ApiOperation(value = "资讯详情", notes = "资讯详情", response = InformationVO.class)
public Response<InformationViewVO> getInformation(@RequestBody IdOneVO vo) { public Response<InformationViewVO> getInformation(HttpServletRequest request,@RequestBody IdOneVO vo) {
try { try {
vo.setContext(ContextHolder.get()); vo.setContext(ContextHolder.get());
InformationViewVO info = informationStudentFeignClients.getInformation(vo); InformationViewVO info = informationStudentFeignClients.getInformation(vo);
if(info!=null) { if(info!=null) {
info.setFavoriteState(studyCaseClient.favoriteStudentCase(info.getId())?1:0); info.setFavoriteState(studyCaseClient.favoriteStudentCase(info.getId())?1:0);
// 添加阅读文章埋点
if(request.getHeader("Cookie")!=null&& Objects.equals(redisCache.get(request.getHeader("Cookie").replace("JSESSIONID=","")),"2")){
eventTrackApiClients.addEvent(String.valueOf(info.getTypeOne()),info.getId());
}
} }
return Response.ok(info); return Response.ok(info);
} catch (Exception e) { } catch (Exception e) {
......
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