Commit adfe1e3f authored by 杨锐's avatar 杨锐

测试环境 测试验证码校验。

parent eebb9b61
...@@ -82,9 +82,9 @@ public class SmsServiceImpl implements ISmsService { ...@@ -82,9 +82,9 @@ public class SmsServiceImpl implements ISmsService {
@Override @Override
public boolean verifyPhoneAndCode(String phoneNo, String verificationCode) { public boolean verifyPhoneAndCode(String phoneNo, String verificationCode) {
// 非生产环境直接跳过验证码检验 // 非生产环境直接跳过验证码检验
if (!TechEnvironment.isPro()) { // if (!TechEnvironment.isPro()) {
return true; // return true;
} // }
String key = Constants.REDIS_PREFIX_VERIFICATION_CODE + phoneNo; String key = Constants.REDIS_PREFIX_VERIFICATION_CODE + phoneNo;
String randomCode = stringRedisTemplate.opsForValue().get(key); String randomCode = stringRedisTemplate.opsForValue().get(key);
if (StringUtils.isBlank(randomCode)) { 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