记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
b9dbea9f
Commit
b9dbea9f
authored
Mar 28, 2025
by
zhoujianping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加用户实名校验验证三要素或者二要素 工具类
parent
50e5ea8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
AdamUserController.java
...liquidnet/service/adam/controller/AdamUserController.java
+30
-0
No files found.
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamUserController.java
View file @
b9dbea9f
...
@@ -316,6 +316,8 @@ public class AdamUserController {
...
@@ -316,6 +316,8 @@ public class AdamUserController {
return
ResponseDto
.
success
(
vo
);
return
ResponseDto
.
success
(
vo
);
}
}
// @ApiOperationSupport(order = 6)
// @ApiOperationSupport(order = 6)
// @ApiOperation(value = "密码修改")
// @ApiOperation(value = "密码修改")
// @ApiImplicitParams({
// @ApiImplicitParams({
...
@@ -518,7 +520,35 @@ public class AdamUserController {
...
@@ -518,7 +520,35 @@ public class AdamUserController {
String
currentMobile
=
(
String
)
CurrentUtil
.
getTokenClaims
().
get
(
CurrentUtil
.
TOKEN_MOBILE
);
String
currentMobile
=
(
String
)
CurrentUtil
.
getTokenClaims
().
get
(
CurrentUtil
.
TOKEN_MOBILE
);
return
mobile
.
equals
(
currentMobile
)
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"10003"
));
return
mobile
.
equals
(
currentMobile
)
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"10003"
));
}
}
/*
* @description: 用户实名校验验证三要素或者二要素
* @author: zjp
* @date: 2025/3/28 13:31
* @param: []
* @return: void
**/
@ApiOperationSupport
(
order
=
7
)
@ApiOperation
(
value
=
"用户实名校验验证三要素或者二要素"
)
@PostMapping
(
value
=
{
"identityHandler"
})
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"name"
,
value
=
"姓名"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"idCard"
,
value
=
"身份证号"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"mobile"
,
value
=
"手机号"
,
required
=
false
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"校验类型 1三要素 2二要素 "
,
required
=
true
)
})
public
void
identityHandler
(
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"idCard"
,
required
=
false
)
String
idCard
,
@RequestParam
(
value
=
"mobile"
,
required
=
false
)
String
mobile
,
@RequestParam
(
value
=
"type"
)
Integer
type
)
{
if
(
type
==
1
){
adamRdmService
.
identityHandler3
(
name
,
idCard
,
mobile
);
}
else
{
adamRdmService
.
identityHandler1
(
null
,
idCard
,
mobile
);
}
}
/* ---------------------------- Internal Method ---------------------------- */
/* ---------------------------- Internal Method ---------------------------- */
private
static
final
String
PHP_API_SMS_CODE_VALID
=
"/smsValidation"
;
private
static
final
String
PHP_API_SMS_CODE_VALID
=
"/smsValidation"
;
...
...
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