Commit 2d8e3fe3 authored by 王亮's avatar 王亮

fix an issue(geetest)

parent c0b104c2
......@@ -52,7 +52,7 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy {
String key = StringUtils.isNotBlank(geetestLogEntity.getPhoneNo()) ? geetestLogEntity.getPhoneNo().trim() : UUID.randomUUID().toString();
if (SettingType.PASSWD.getAlias().equals(SettingType.valueByCode(validateBehavior.getType()).getAlias())) {
if (SettingType.PASSWD.getAlias().equals(SettingType.valueByCode(geetestLogEntity.getSetting()).getAlias())) {
result = geetestCaptchaService.validGeetestCaptchaPasswd(key, validateBehavior.getData().get(Constants.X_BEHAVIOR_IP), ClientType.valueByCode(geetestLogEntity.getDataSource()), validateBehavior.getData().get(Constants.X_BEHAVIOR_CHALLENGE), validateBehavior.getData().get(Constants.X_BEHAVIOR_VALIDATE), validateBehavior.getData().get(Constants.X_BEHAVIOR_SECCODE));
} else {
result = geetestCaptchaService.validGeetestCaptcha(key, validateBehavior.getData().get(Constants.X_BEHAVIOR_IP), ClientType.valueByCode(geetestLogEntity.getDataSource()), validateBehavior.getData().get(Constants.X_BEHAVIOR_CHALLENGE), validateBehavior.getData().get(Constants.X_BEHAVIOR_VALIDATE), validateBehavior.getData().get(Constants.X_BEHAVIOR_SECCODE));
......
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