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
dbd769c8
Commit
dbd769c8
authored
Jan 17, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点优化
parent
14a20734
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/LeaveWordManageController.java
+1
-1
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/SitePublicationManageController.java
+3
-3
cloud-web-manage/src/main/java/com/yizhi/application/research/controller/manage/ResearchController.java
+1
-1
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TpCommentApiController.java
+1
-1
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TrainingProjectController.java
+1
-1
No files found.
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/LeaveWordManageController.java
View file @
dbd769c8
...
@@ -67,7 +67,7 @@ public class LeaveWordManageController {
...
@@ -67,7 +67,7 @@ public class LeaveWordManageController {
leaveWordParamVo
.
setCreateById
(
context
.
getAccountId
());
leaveWordParamVo
.
setCreateById
(
context
.
getAccountId
());
Page
<
LeaveWordVo
>
page
=
leaveWordClient
.
page
(
leaveWordParamVo
);
Page
<
LeaveWordVo
>
page
=
leaveWordClient
.
page
(
leaveWordParamVo
);
// 添加留言埋点
// 添加留言埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"leave_word"
,
context
.
getAccountId
());
eventTrackApiClients
.
addEvent
(
"leave_word"
,
context
.
getAccountId
());
}
}
return
Response
.
ok
(
page
);
return
Response
.
ok
(
page
);
...
...
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/SitePublicationManageController.java
View file @
dbd769c8
...
@@ -65,10 +65,10 @@ public class SitePublicationManageController {
...
@@ -65,10 +65,10 @@ public class SitePublicationManageController {
try
{
try
{
RequestContext
context
=
ContextHolder
.
get
();
RequestContext
context
=
ContextHolder
.
get
();
vo
.
setSiteId
(
context
.
getSiteId
());
vo
.
setSiteId
(
context
.
getSiteId
());
LOGGER
.
info
(
"===========登录信息:{}
"
,
JSON
.
toJSONString
(
context
));
LOGGER
.
info
(
"===========登录信息:{}
============{}"
,
request
.
getHeader
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
),
redisCache
.
get
(
request
.
getHeader
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)
));
// 添加我的投稿埋点
// 添加我的投稿埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"event_publication"
,
context
.
getAccountId
());
eventTrackApiClients
.
addEvent
(
"event_publication"
,
context
.
getAccountId
());
}
}
return
Response
.
ok
(
publicationManageFeignClients
.
list
(
vo
));
return
Response
.
ok
(
publicationManageFeignClients
.
list
(
vo
));
...
@@ -143,7 +143,7 @@ public class SitePublicationManageController {
...
@@ -143,7 +143,7 @@ public class SitePublicationManageController {
}
}
// 添加我的投稿埋点
// 添加我的投稿埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"event_publication_"
+
information
.
getTypeOne
(),
id
);
eventTrackApiClients
.
addEvent
(
"event_publication_"
+
information
.
getTypeOne
(),
id
);
}
}
information
.
setId
(
id
);
information
.
setId
(
id
);
...
...
cloud-web-manage/src/main/java/com/yizhi/application/research/controller/manage/ResearchController.java
View file @
dbd769c8
...
@@ -264,7 +264,7 @@ public class ResearchController {
...
@@ -264,7 +264,7 @@ public class ResearchController {
RequestContext
context
=
ContextHolder
.
get
();
RequestContext
context
=
ContextHolder
.
get
();
// 添加调研埋点
// 添加调研埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"event_research"
,
context
.
getAccountId
());
eventTrackApiClients
.
addEvent
(
"event_research"
,
context
.
getAccountId
());
}
}
return
Response
.
ok
(
researchClient
.
listPage
(
model
));
return
Response
.
ok
(
researchClient
.
listPage
(
model
));
...
...
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TpCommentApiController.java
View file @
dbd769c8
...
@@ -81,7 +81,7 @@ public class TpCommentApiController {
...
@@ -81,7 +81,7 @@ public class TpCommentApiController {
RequestContext
context
=
ContextHolder
.
get
();
RequestContext
context
=
ContextHolder
.
get
();
// 添加发表评论埋点
// 添加发表评论埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"event_tp_comment"
,
tpComment
.
getId
());
eventTrackApiClients
.
addEvent
(
"event_tp_comment"
,
tpComment
.
getId
());
}
}
if
(
f
)
{
if
(
f
)
{
...
...
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TrainingProjectController.java
View file @
dbd769c8
...
@@ -503,7 +503,7 @@ public class TrainingProjectController {
...
@@ -503,7 +503,7 @@ public class TrainingProjectController {
RequestContext
context
=
ContextHolder
.
get
();
RequestContext
context
=
ContextHolder
.
get
();
// 添加活动埋点
// 添加活动埋点
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Session
().
getId
()),
2
)){
if
(
Objects
.
equals
(
redisCache
.
get
(
request
.
get
Header
(
"Cookie"
).
replace
(
"JSESSIONID="
,
""
)),
"2"
)){
eventTrackApiClients
.
addEvent
(
"event_training_activity"
,
context
.
getAccountId
());
eventTrackApiClients
.
addEvent
(
"event_training_activity"
,
context
.
getAccountId
());
}
}
return
Response
.
ok
(
result
);
return
Response
.
ok
(
result
);
...
...
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