Commit 67bd5cee authored by 唐峰's avatar 唐峰

兼容处理前端校验验证码未传类型问题

parent 0414ff0a
......@@ -72,6 +72,11 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy {
String registerDt = LocalDateTime.now().toString();
Map<String, String> imgMap;
//0:账密,1:短验;
//兼容前端传参问题,没有给个默认
if (behaviorReq.getClientType() == null) {
behaviorReq.setClientType(0);
}
//两个逻辑看着没啥区别,
if (behaviorReq.getSettingType() == 0) {
imgMap = geetestCaptchaService.fetchGeetestCaptchaPasswd(PasswordUtil.MD5(key), behaviorReq.getIp(), ClientType.valueByCode(behaviorReq.getClientType()));
} else {
......
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