Commit daea2d91 authored by 董建华's avatar 董建华

上线前准备

parent 5758f1ca
...@@ -172,7 +172,7 @@ public interface Constants { ...@@ -172,7 +172,7 @@ public interface Constants {
/** /**
* 图形验证码有效期 * 图形验证码有效期
*/ */
Long IMAGE_CAPTCHA_REDIS_CACHE_TIME_OUT = 1L; Long IMAGE_CAPTCHA_REDIS_CACHE_TIME_OUT = 10L;
/** /**
* 默认随机密码长度 * 默认随机密码长度
*/ */
......
...@@ -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