记得上下班打卡 | 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
6ac2d770
Commit
6ac2d770
authored
Aug 01, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:更换手机号验证手机号是否已注册;
parent
ad7e10fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
AdamUserController.java
...liquidnet/service/adam/controller/AdamUserController.java
+10
-3
errors.properties
...et-service-adam-impl/src/main/resources/errors.properties
+1
-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 @
6ac2d770
...
...
@@ -197,10 +197,17 @@ public class AdamUserController {
@RequestParam
String
code
)
{
log
.
debug
(
"mobile:{},code:{}"
,
mobile
,
code
);
ResponseDto
checkSmsCodeDto
=
this
.
checkSmsCode
(
mobile
,
code
);
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
String
bindMobileExistUid
=
adamRdmService
.
getUidByMobile
(
mobile
);
if
(
StringUtils
.
isNotEmpty
(
bindMobileExistUid
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"10009"
));
}
ResponseDto
<
String
>
checkSmsCodeDto
=
this
.
checkSmsCode
(
mobile
,
code
);
if
(!
checkSmsCodeDto
.
isSuccess
())
return
checkSmsCodeDto
;
return
ResponseDto
.
success
(
adamUserInfoService
.
editMobile
(
CurrentUtil
.
getCurrentUid
()
,
mobile
));
return
ResponseDto
.
success
(
adamUserInfoService
.
editMobile
(
currentUid
,
mobile
));
}
@ApiOperationSupport
(
order
=
5
)
...
...
@@ -311,7 +318,7 @@ public class AdamUserController {
private
static
final
String
PHP_API_SMS_CODE_VALID
=
"/smsValidation"
;
private
ResponseDto
checkSmsCode
(
String
mobile
,
String
code
)
{
private
ResponseDto
<
String
>
checkSmsCode
(
String
mobile
,
String
code
)
{
if
(
Arrays
.
asList
(
LnsEnum
.
ENV
.
dev
.
name
(),
LnsEnum
.
ENV
.
test
.
name
()).
contains
(
env
.
getProperty
(
CurrentUtil
.
CK_ENV_ACTIVE
))
&&
CurrentUtil
.
GRAY_LOGIN_SMS_CODE
.
equals
(
code
))
{
return
ResponseDto
.
success
();
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/resources/errors.properties
View file @
6ac2d770
...
...
@@ -12,7 +12,7 @@
10006
=
第三方账号未注册
10007
=
该第三方账号已经被其他用户绑定
10008
=
已经绑定过该类型的第三方账号
10009
=
10009
=
手机号已经注册
10010
=
10011
=
性别标签无效
10012
=
音乐风格标签无效
...
...
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