Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62fa0550
authored
Apr 02, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:测试环境短信校验
1 parent
e87e6fbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
aus-inspector/src/main/java/com/glsx/usedcar/controller/AuthController.java
aus-inspector/src/main/java/com/glsx/usedcar/controller/AuthController.java
View file @
62fa055
...
@@ -101,7 +101,7 @@ public class AuthController {
...
@@ -101,7 +101,7 @@ public class AuthController {
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
INSPECTOR_NOT_EXISTS
);
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
INSPECTOR_NOT_EXISTS
);
}
}
String
code
=
loginRequest
.
getVerifyCode
();
String
code
=
loginRequest
.
getVerifyCode
();
if
(!
smsCodeUtil
.
validateCode
(
phone
,
code
)
&&
!
envProfileUtils
.
isDevEnvironment
())
{
if
(!
smsCodeUtil
.
validateCode
(
phone
,
code
)
&&
!
envProfileUtils
.
isDevEnvironment
()
&&
!
envProfileUtils
.
isTestEnvironment
()
)
{
log
.
warn
(
"用户手机号{}验证码错误"
,
phone
);
log
.
warn
(
"用户手机号{}验证码错误"
,
phone
);
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
INSPECTOR_LOGIN_CODE_ERROR
);
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
INSPECTOR_LOGIN_CODE_ERROR
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment