Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnooc_zydeepen-cggl_expert-manage-miniapp
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙德龙
cnooc_zydeepen-cggl_expert-manage-miniapp
Commits
e2c6eb65
Commit
e2c6eb65
authored
Nov 14, 2025
by
刘红梅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
1c11ee63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/cnooc/expert/auth/service/impl/LoginServiceImpl.java
+2
-2
No files found.
src/main/java/com/cnooc/expert/auth/service/impl/LoginServiceImpl.java
View file @
e2c6eb65
...
...
@@ -223,6 +223,8 @@ public class LoginServiceImpl implements LoginService {
if
(
expertInfoResp
==
null
){
throw
new
BusinessException
(
GlobalErrorCodeConstants
.
USER_NOT_EXISTS
.
getCode
(),
GlobalErrorCodeConstants
.
USER_NOT_EXISTS
.
getMsg
());
}
//expertInfoResp = new ExpertInfoResp();
//expertInfoResp.setZhuanJiaGuid("1234");
boolean
isAccountLocked
=
accountLockService
.
isAccountLocked
(
expertInfoResp
.
getZhuanJiaGuid
());
if
(
isAccountLocked
){
//如果账号锁定了,返回错误信息
...
...
@@ -236,8 +238,6 @@ public class LoginServiceImpl implements LoginService {
}
//3.生成相应的uuid作为redis的key
String
uuidKey
=
UUID
.
randomUUID
().
toString
();
//expertInfoResp = new ExpertInfoResp();
//expertInfoResp.setZhuanJiaGuid("1234");
ZhuanJiaUser
zhuanJiaUser
=
convert2ZhuanjiaUser
(
expertInfoResp
);
redisTemplate
.
opsForValue
().
set
(
TokenConstants
.
LOGIN_USER_KEY_
+
expertInfoResp
.
getZhuanJiaGuid
(),
zhuanJiaUser
,
48
,
TimeUnit
.
HOURS
);
UserUtils
.
setUserId
(
zhuanJiaUser
);
...
...
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