提交 dc60f9ec authored 作者: huyufan's avatar huyufan

验证码

上级 cc5c8781
...@@ -969,7 +969,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -969,7 +969,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
} }
Object code = JSONUtil.parse(content).getByPath("code"); Object code = JSONUtil.parse(content).getByPath("code");
if (!ObjectUtil.equal(code,param.getCaptcha())) { if (!StringUtils.equals(code.toString(),param.getCaptcha())) {
log.info("redis验证码:{}, 用户提交验证码:{}", code, param.getCaptcha());
throw new ServiceSystemException(PerformanceResultEnum.CAPTCHA_IS_FAIL); throw new ServiceSystemException(PerformanceResultEnum.CAPTCHA_IS_FAIL);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论