Commit 7fea5ffb authored by 唐峰's avatar 唐峰

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

parent 67bd5cee
......@@ -73,8 +73,8 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy {
Map<String, String> imgMap;
//0:账密,1:短验;
//兼容前端传参问题,没有给个默认
if (behaviorReq.getClientType() == null) {
behaviorReq.setClientType(0);
if (behaviorReq.getSettingType() == null) {
behaviorReq.setSettingType(0);
}
//两个逻辑看着没啥区别,
if (behaviorReq.getSettingType() == 0) {
......
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