Commit 62fa0550 by 章家宝

feat:测试环境短信校验

1 parent e87e6fbe
......@@ -101,7 +101,7 @@ public class AuthController {
throw new BusinessCodeException(ErrorCodeEnum.INSPECTOR_NOT_EXISTS);
}
String code = loginRequest.getVerifyCode();
if (!smsCodeUtil.validateCode(phone, code) && !envProfileUtils.isDevEnvironment()) {
if (!smsCodeUtil.validateCode(phone, code) && !envProfileUtils.isDevEnvironment() && !envProfileUtils.isTestEnvironment()) {
log.warn("用户手机号{}验证码错误", phone);
throw new BusinessCodeException(ErrorCodeEnum.INSPECTOR_LOGIN_CODE_ERROR);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!