Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
wx
yanxuan-wx-store-sharer
Commits
b48a9a7b
Commit
b48a9a7b
authored
May 15, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新加入实名认证开关
parent
4eec9b4a
Pipeline
#75567
passed with stages
in 1 minute 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
AppConfig.java
...netease/yanxuan/wx/store/sharer/biz/config/AppConfig.java
+3
-2
UserServiceImpl.java
...uan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
+3
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/AppConfig.java
View file @
b48a9a7b
...
...
@@ -16,8 +16,8 @@ import org.springframework.stereotype.Component;
public
class
AppConfig
{
/**
* 实名认证
* 实名认证
开关
*/
@Value
(
"${sys.real
N
ame.authenticated.enabled:true}"
)
@Value
(
"${sys.real
n
ame.authenticated.enabled:true}"
)
private
Boolean
realNameAuthenticatedEnabled
;
}
\ No newline at end of file
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
View file @
b48a9a7b
...
...
@@ -209,11 +209,13 @@ public class UserServiceImpl implements IUserService {
// 验证身份信息
Boolean
realNameAuthenticatedEnabled
=
appConfig
.
getRealNameAuthenticatedEnabled
();
if
(
null
==
realNameAuthenticatedEnabled
||
realNameAuthenticatedEnabled
){
log
.
info
(
"
op:realNameAuthenticated:
realNameAuthenticatedEnabled is enabled"
);
log
.
info
(
"
[op:realNameAuthenticated]
realNameAuthenticatedEnabled is enabled"
);
Boolean
isVerifySuccess
=
iUserInfoClient
.
verifyByIdentityNo
(
bo
.
getUsername
(),
bo
.
getIdCardNumber
());
if
(
null
==
isVerifySuccess
||
!
isVerifySuccess
){
throw
new
BizException
(
"实名认证不通过"
);
}
}
else
{
log
.
info
(
"[op:realNameAuthenticated] realNameAuthenticatedEnabled is disabled"
);
}
// 验证通过后更新实名认证信息
LoginUserInfo
loginUserInfo
=
LoginUserContextHolder
.
get
();
...
...
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