|
@@ -175,6 +175,10 @@ public class AuthServiceImpl implements AuthService {
|
|
|
if (redisUtils.hexists(AuthConstant.VERIFY_CODE_TIME_OUT + action.value(), receiver)) {
|
|
|
throw new BackendRuntimeException(AuthConstant.VERIFY_CODE_SEND_TOO_QUICKLY);
|
|
|
}
|
|
|
+ if (ObjectUtils.isNotEmpty(VppMemberService.getByAccount(receiver))) {
|
|
|
+ throw new BackendRuntimeException(VppMemberConstant.EXCEPTION_MSG_EMAIL_EXIST);
|
|
|
+ }
|
|
|
+
|
|
|
String code = CommonUtils.generateVerifyCode();
|
|
|
switch (type) {
|
|
|
//发送手机验证码
|