Commit 97a2f0d3 authored by 赵啸非's avatar 赵啸非

添加站点业务备注

parent 54d013ac
......@@ -7,7 +7,6 @@ import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ReflectUtil;
import com.mortals.framework.common.Rest;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.utils.redis.RedisUtils;
import com.mortals.xhx.base.framework.config.CaptchaProperties;
import com.mortals.xhx.base.framework.expection.CaptchaException;
import com.mortals.xhx.base.framework.expection.CaptchaExpireException;
......@@ -98,7 +97,8 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
}
String verifyKey = Constant.CAPTCHA_CODE_KEY + uuid;
String captcha = cacheService.get(verifyKey);
RedisUtils.deleteObject(verifyKey);
cacheService.del(verifyKey);
// RedisUtils.deleteObject(verifyKey);
if (!code.equalsIgnoreCase(captcha)) {
throw new CaptchaException();
}
......
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