手机号授权:编辑功能及校验手机日志追加

This commit is contained in:
lzm
2022-11-28 12:26:42 +08:00
committed by yeungchihang
parent fbc2c2d00e
commit 592d5ed994
6 changed files with 18 additions and 10 deletions

View File

@@ -192,7 +192,7 @@ public class AccountH5LoginService {
if (null != account) {
throw new ServiceException(BusiStatus.PHONE_REGISTERED);
}
if (CommonUtil.checkPhoneFormat(phoneAreaCode,mobile)){
if (!CommonUtil.checkPhoneFormat(phoneAreaCode,mobile)){
throw new ServiceException(BusiStatus.PHONEINVALID);
}

View File

@@ -209,7 +209,7 @@ public class AccountController extends BaseController {
}
}
if (CommonUtil.checkPhoneFormat(phoneAreaCode,phone)){
if (!CommonUtil.checkPhoneFormat(phoneAreaCode,phone)){
throw new ServiceException(BusiStatus.PHONEINVALID);
}