Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
5e5bafd8
Commit
5e5bafd8
authored
Sep 30, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机号码校验 返回优化
parent
fbcbdaee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
TCheckMobileServiceImpl.java
...d/plus/v1/check/service/impl/TCheckMobileServiceImpl.java
+8
-3
No files found.
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckMobileServiceImpl.java
View file @
5e5bafd8
...
...
@@ -49,7 +49,7 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
private
final
TCanCheckService
canCheckService
;
/**
* @Author fxj
* @Author fxj
待完善
* @Description 号码状态校验,单次请求上限100 多一个号码请以逗号分割
* @Date 19:18 2022/6/20
**/
...
...
@@ -124,7 +124,9 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
.
eq
(
TCheckMobile:
:
getMobile
,
mobile
));
if
(
Common
.
isNotNull
(
checkMobiles
))
{
for
(
TCheckMobile
c
:
checkMobiles
)
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
c
.
getStatus
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
c
.
getStatus
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
c
.
getStatus
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
c
.
getStatus
()))
{
returnMobile
.
setStatus
(
CommonConstants
.
ONE_STRING
);
returnMobile
.
setMessage
(
c
.
getMessage
());
return
returnMobile
;
...
...
@@ -144,7 +146,10 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
if
(
Common
.
isNotNull
(
checkMobileMap
)
&&
checkMobileMap
.
get
(
mobile
)
!=
null
)
{
TCheckMobile
checkMobile
=
checkMobileMap
.
get
(
mobile
);
this
.
save
(
checkMobile
);
if
(
checkMobile
!=
null
&&
CommonConstants
.
ONE_STRING
.
equals
(
checkMobile
.
getStatus
()))
{
if
(
checkMobile
!=
null
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
checkMobile
.
getStatus
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
checkMobile
.
getStatus
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
checkMobile
.
getStatus
())))
{
returnMobile
.
setStatus
(
CommonConstants
.
ONE_STRING
);
return
returnMobile
;
}
else
{
...
...
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