Commit 5e5bafd8 authored by fangxinjiang's avatar fangxinjiang

手机号码校验 返回优化

parent fbcbdaee
...@@ -49,7 +49,7 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh ...@@ -49,7 +49,7 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
private final TCanCheckService canCheckService; private final TCanCheckService canCheckService;
/** /**
* @Author fxj * @Author fxj 待完善
* @Description 号码状态校验,单次请求上限100 多一个号码请以逗号分割 * @Description 号码状态校验,单次请求上限100 多一个号码请以逗号分割
* @Date 19:18 2022/6/20 * @Date 19:18 2022/6/20
**/ **/
...@@ -124,7 +124,9 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh ...@@ -124,7 +124,9 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
.eq(TCheckMobile::getMobile, mobile)); .eq(TCheckMobile::getMobile, mobile));
if (Common.isNotNull(checkMobiles)) { if (Common.isNotNull(checkMobiles)) {
for (TCheckMobile c : 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.setStatus(CommonConstants.ONE_STRING);
returnMobile.setMessage(c.getMessage()); returnMobile.setMessage(c.getMessage());
return returnMobile; return returnMobile;
...@@ -144,7 +146,10 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh ...@@ -144,7 +146,10 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
if (Common.isNotNull(checkMobileMap) && checkMobileMap.get(mobile) != null) { if (Common.isNotNull(checkMobileMap) && checkMobileMap.get(mobile) != null) {
TCheckMobile checkMobile = checkMobileMap.get(mobile); TCheckMobile checkMobile = checkMobileMap.get(mobile);
this.save(checkMobile); 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); returnMobile.setStatus(CommonConstants.ONE_STRING);
return returnMobile; return returnMobile;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment