Commit 1907d0f5 authored by 唐峰's avatar 唐峰

去掉极验降级验证

parent 7299b751
...@@ -78,7 +78,6 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy { ...@@ -78,7 +78,6 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy {
imgMap = geetestCaptchaService.fetchGeetestCaptcha(PasswordUtil.MD5(key), behaviorReq.getIp(), ClientType.valueByCode(behaviorReq.getClientType())); imgMap = geetestCaptchaService.fetchGeetestCaptcha(PasswordUtil.MD5(key), behaviorReq.getIp(), ClientType.valueByCode(behaviorReq.getClientType()));
} }
imgMap.put("success", "2");//测试环境临时验证
if (imgMap.containsKey("success") && "1".equals(imgMap.get("success"))) { if (imgMap.containsKey("success") && "1".equals(imgMap.get("success"))) {
behaviorCodeBean.setType(1); behaviorCodeBean.setType(1);
behaviorCodeBean.setGeetestCode(BehaviorCodeBean.GeetestCode.builder().gt(imgMap.get("gt")) behaviorCodeBean.setGeetestCode(BehaviorCodeBean.GeetestCode.builder().gt(imgMap.get("gt"))
......
...@@ -67,7 +67,7 @@ public class QuantGroupBehaviorStrategy implements BehaviorStrategy { ...@@ -67,7 +67,7 @@ public class QuantGroupBehaviorStrategy implements BehaviorStrategy {
if (challenge == null) { if (challenge == null) {
throw new VerificationCodeErrorException(BizExceptionEnum.FAIL_GENERATE_IMAGE); throw new VerificationCodeErrorException(BizExceptionEnum.FAIL_GENERATE_IMAGE);
} }
behaviorCodeBean.setType(1); behaviorCodeBean.setType(2);
behaviorCodeBean.setQtCode(BehaviorCodeBean.QtCode.builder().imageData(challenge.get("image")).build()); behaviorCodeBean.setQtCode(BehaviorCodeBean.QtCode.builder().imageData(challenge.get("image")).build());
behaviorCodeBean.setId(challenge.get("imageId")); behaviorCodeBean.setId(challenge.get("imageId"));
return behaviorCodeBean; return behaviorCodeBean;
......
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