Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
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
poc
poc-api
Commits
71593f44
Commit
71593f44
authored
Dec 02, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: --bug== 1009496
parent
d53dd999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
MemberInfoServiceImpl.java
.../com/poc/user/aggregation/impl/MemberInfoServiceImpl.java
+11
-5
No files found.
src/main/java/cn/com/poc/user/aggregation/impl/MemberInfoServiceImpl.java
View file @
71593f44
...
...
@@ -42,17 +42,23 @@ public class MemberInfoServiceImpl extends BaseServiceImpl implements MemberInfo
@Override
public
void
configureMemberPassword
(
MemberPasswordRequestDto
memberPasswordRequestDto
)
throws
Exception
{
MemberInfoEntity
memberInfoEntity
=
bizMemberInfoService
.
getMemberEntityByAccount
(
memberPasswordRequestDto
.
getAccount
());
if
(
memberInfoEntity
==
null
)
{
throw
new
I18nMessageException
(
"exception/user.cannot.be.found"
);
}
String
authCode
=
(
String
)
redisService
.
get
(
RedisKeyConstant
.
Code
.
AUTH_CODE
+
memberPasswordRequestDto
.
getAccount
());
if
(
StringUtils
.
isBlank
(
authCode
)
&&
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getMobilePhone
()))
{
authCode
=
(
String
)
redisService
.
get
(
RedisKeyConstant
.
Code
.
AUTH_CODE
+
memberInfoEntity
.
getMobilePhone
());
}
if
(
StringUtils
.
isBlank
(
authCode
)
&&
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getEmail
()))
{
authCode
=
(
String
)
redisService
.
get
(
RedisKeyConstant
.
Code
.
AUTH_CODE
+
memberInfoEntity
.
getEmail
());
}
if
(!
memberPasswordRequestDto
.
getAuthCode
().
equals
(
authCode
))
{
throw
new
I18nMessageException
(
"exception/re-verify.the.user.identity"
);
}
MemberInfoEntity
memberInfoEntity
=
bizMemberInfoService
.
getMemberEntityByAccount
(
memberPasswordRequestDto
.
getAccount
());
if
(
memberInfoEntity
==
null
)
{
throw
new
I18nMessageException
(
"exception/user.cannot.be.found"
);
}
Member3rdPartyRelationEntity
member3rdPartyRelationEntity
=
bizMember3rdPartyRelationService
.
getPwRelationByMemberId
(
memberInfoEntity
.
getMemberId
());
if
(
member3rdPartyRelationEntity
==
null
)
{
member3rdPartyRelationEntity
=
new
Member3rdPartyRelationEntity
();
...
...
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