|
@@ -164,10 +164,9 @@ public class LoginService {
|
|
|
if (!param.getConfirmPwd().equals(param.getPassword())){
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3009, LoginConstant.FAILURE_MSG_3009);
|
|
|
}
|
|
|
- if(param.getMsgAuthCode().equals(registerValidCode)){
|
|
|
-
|
|
|
+ if(!param.getMsgAuthCode().equals(registerValidCode)){
|
|
|
+ checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
|
|
|
}
|
|
|
- checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
|
|
|
User user = userService.getByUserName(param.getPhoneNum());
|
|
|
if(user != null){
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3008, LoginConstant.FAILURE_MSG_3008);
|