记得上下班打卡 | 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
ad5c96e3
Commit
ad5c96e3
authored
Aug 19, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~opt;
parent
b6dc972f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
AdamUserController.java
...liquidnet/service/adam/controller/AdamUserController.java
+3
-2
GoblinSmsController.java
...uidnet/service/goblin/controller/GoblinSmsController.java
+2
-1
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 @
ad5c96e3
...
@@ -33,6 +33,7 @@ import org.springframework.validation.annotation.Validated;
...
@@ -33,6 +33,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
...
@@ -474,7 +475,7 @@ public class AdamUserController {
...
@@ -474,7 +475,7 @@ public class AdamUserController {
})
})
@GetMapping
(
value
=
"info/identity"
)
@GetMapping
(
value
=
"info/identity"
)
public
ResponseDto
<
AdamUserIdentityInfoVo
>
identityInfoByMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
public
ResponseDto
<
AdamUserIdentityInfoVo
>
identityInfoByMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@RequestParam
(
name
=
"mobile"
,
required
=
false
)
String
mobile
)
{
@RequestParam
(
required
=
false
)
String
mobile
)
{
String
uid
=
null
==
mobile
?
CurrentUtil
.
getCurrentUid
()
:
adamRdmService
.
getUidByMobile
(
mobile
);
String
uid
=
null
==
mobile
?
CurrentUtil
.
getCurrentUid
()
:
adamRdmService
.
getUidByMobile
(
mobile
);
AdamUserInfoVo
userInfoVo
;
AdamUserInfoVo
userInfoVo
;
if
(
uid
==
null
||
null
==
(
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
)))
{
if
(
uid
==
null
||
null
==
(
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
)))
{
...
@@ -498,7 +499,7 @@ public class AdamUserController {
...
@@ -498,7 +499,7 @@ public class AdamUserController {
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"mobile"
,
value
=
"手机号[用于验证当前账户所绑定手机号]"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"mobile"
,
value
=
"手机号[用于验证当前账户所绑定手机号]"
),
})
})
@PostMapping
(
value
=
{
"check/mobile"
})
@PostMapping
(
value
=
{
"check/mobile"
})
public
ResponseDto
<
Object
>
checkMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@RequestParam
String
mobile
)
{
public
ResponseDto
<
Object
>
checkMobile
(
@
NotBlank
(
message
=
"手机号不能为空"
)
@
Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@RequestParam
String
mobile
)
{
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"
));
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinSmsController.java
View file @
ad5c96e3
...
@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
@ApiSupport
(
order
=
141000
)
@ApiSupport
(
order
=
141000
)
...
@@ -73,7 +74,7 @@ public class GoblinSmsController {
...
@@ -73,7 +74,7 @@ public class GoblinSmsController {
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"验证码"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"验证码"
),
})
})
@PostMapping
(
value
=
{
"code/check"
})
@PostMapping
(
value
=
{
"code/check"
})
public
ResponseDto
<
Object
>
checkVerificationCode
(
@Pattern
(
regexp
=
"\\d{6}"
,
message
=
"验证码格式有误"
)
@RequestParam
String
code
)
{
public
ResponseDto
<
Object
>
checkVerificationCode
(
@
NotBlank
(
message
=
"验证码不能为空"
)
@
Pattern
(
regexp
=
"\\d{6}"
,
message
=
"验证码格式有误"
)
@RequestParam
String
code
)
{
String
mobile
=
(
String
)
CurrentUtil
.
getTokenClaims
().
get
(
CurrentUtil
.
TOKEN_MOBILE
);
String
mobile
=
(
String
)
CurrentUtil
.
getTokenClaims
().
get
(
CurrentUtil
.
TOKEN_MOBILE
);
if
(!
LnsEnum
.
ENV
.
prod
.
name
().
equals
(
env
.
getProperty
(
CurrentUtil
.
CK_ENV_ACTIVE
)))
{
if
(!
LnsEnum
.
ENV
.
prod
.
name
().
equals
(
env
.
getProperty
(
CurrentUtil
.
CK_ENV_ACTIVE
)))
{
if
(
CurrentUtil
.
GRAY_LOGIN_SMS_CODE
.
equals
(
code
))
return
ResponseDto
.
success
();
if
(
CurrentUtil
.
GRAY_LOGIN_SMS_CODE
.
equals
(
code
))
return
ResponseDto
.
success
();
...
...
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