|
@@ -117,10 +117,15 @@ public class BasicVerifyCodeServiceImpl extends ServiceImpl<BasicVerifyCodeMappe
|
|
this.updateById(basicVerifyCode);
|
|
this.updateById(basicVerifyCode);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- throw ExceptionResultEnum.ERROR.exception(sendSmsResponse.getMessage());
|
|
|
|
|
|
+ if("isv.MOBILE_NUMBER_ILLEGAL".equals(sendSmsResponse.getCode())){
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("非法手机号");
|
|
|
|
+ }else {
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception(sendSmsResponse.getMessage());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} catch (ClientException e) {
|
|
} catch (ClientException e) {
|
|
- throw ExceptionResultEnum.ERROR.exception(e.getMessage());
|
|
|
|
|
|
+ String error = e.getMessage();
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("请重新获取验证码");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|