手机号授权:编辑功能及校验手机日志追加
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -209,7 +209,7 @@ public class AccountController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
if (CommonUtil.checkPhoneFormat(phoneAreaCode,phone)){
|
||||
if (!CommonUtil.checkPhoneFormat(phoneAreaCode,phone)){
|
||||
throw new ServiceException(BusiStatus.PHONEINVALID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user