Commit 42599312 authored by 杨锐's avatar 杨锐

非生产环境直接跳过验证码检验。

parent adfe1e3f
......@@ -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