Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
elearn
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
elearn
Commits
35f20d67
Commit
35f20d67
authored
Jan 21, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点优化
parent
3c3124ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
cloud-system/src/main/java/com/yizhi/system/application/controller/api/AuthController.java
+7
-5
No files found.
cloud-system/src/main/java/com/yizhi/system/application/controller/api/AuthController.java
View file @
35f20d67
...
@@ -317,11 +317,13 @@ public class AuthController {
...
@@ -317,11 +317,13 @@ public class AuthController {
context
.
setSiteType
(
terminalType
);
context
.
setSiteType
(
terminalType
);
// 新增登录积分
// 新增登录积分
String
shortDay
=
DateUtil
.
toShortDay
(
new
Date
());
String
shortDay
=
DateUtil
.
toShortDay
(
new
Date
());
pointListenerClients
.
addPoint
(
"point_login"
,
Long
.
valueOf
(
shortDay
));
if
(!
redisCache
.
hasKey
(
request
.
getSession
().
getId
()))
{
// 添加登录埋点
pointListenerClients
.
addPoint
(
"point_login"
,
Long
.
valueOf
(
shortDay
));
eventTrackApiClients
.
addEvent
(
"event_login"
,
context
.
getAccountId
());
// 添加登录埋点
logger
.
info
(
"=================登录session,{}"
,
request
.
getSession
().
getId
());
eventTrackApiClients
.
addEvent
(
"event_login"
,
context
.
getAccountId
());
redisCache
.
set
(
request
.
getSession
().
getId
(),
String
.
valueOf
(
terminalType
),
86400
);
logger
.
info
(
"=================登录session,{}"
,
request
.
getSession
().
getId
());
redisCache
.
set
(
request
.
getSession
().
getId
(),
String
.
valueOf
(
terminalType
),
86400
);
}
}
}
ContextHolder
.
set
(
context
);
ContextHolder
.
set
(
context
);
logger
.
info
(
"登陆处理结束"
);
logger
.
info
(
"登陆处理结束"
);
...
...
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