|
@@ -199,6 +199,10 @@ public class ZhcxApiServiceImpl implements ZhcxApiService {
|
|
|
return R.error();
|
|
|
}
|
|
|
String account = (String) accountObj;
|
|
|
+ boolean validPhoneNumber = HwSmsUtil.isValidPhoneNumber(account);
|
|
|
+ if(!validPhoneNumber){
|
|
|
+ return R.error("手机号格式不正确");
|
|
|
+ }
|
|
|
LambdaQueryWrapper<SysUserDo> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.and(i -> i.eq(SysUserDo::getAccount, account).
|
|
|
or().eq(SysUserDo::getMobile, account).
|
|
@@ -348,4 +352,5 @@ public class ZhcxApiServiceImpl implements ZhcxApiService {
|
|
|
}
|
|
|
return R.error("获取账号信息失败, 请联系管理员!");
|
|
|
}
|
|
|
+
|
|
|
}
|