Commit 2a42a271 authored by 董建华's avatar 董建华

测试环境临时允许校验验证码

parent 7dc42355
......@@ -82,9 +82,9 @@ public class SmsServiceImpl implements ISmsService {
@Override
public boolean verifyPhoneAndCode(String phoneNo, String verificationCode) {
// 非生产环境直接跳过验证码检验
if (!TechEnvironment.isPro()) {
return true;
}
// if (!TechEnvironment.isPro()) {
// return true;
// }
String key = Constants.REDIS_PREFIX_VERIFICATION_CODE + phoneNo;
String randomCode = stringRedisTemplate.opsForValue().get(key);
if (StringUtils.isBlank(randomCode)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment