Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
d034a7eb
Commit
d034a7eb
authored
Sep 04, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论,收藏,点赞 埋点修改
parent
b1ae4b10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
cloud-web-student/src/main/java/com/yizhi/application/caseLibrary/controller/StudyCaseController.java
+4
-1
No files found.
cloud-web-student/src/main/java/com/yizhi/application/caseLibrary/controller/StudyCaseController.java
View file @
d034a7eb
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment