Commit 17155060 authored by 唐峰's avatar 唐峰

验证码极验时间处理

parent 0e67b117
......@@ -79,7 +79,7 @@ public class GeetestBehaviorStrategy implements BehaviorStrategy {
).offline(false).newCaptcha(true).
build());
String registerReDt = LocalDateTime.now().toString();
imgMap.put(Constants.QG_CAPTCHA_INITDT,behaviorReq.getInitializeDt().toString());
imgMap.put(Constants.QG_CAPTCHA_INITDT,behaviorReq.getInitializeDt() == null ? null : behaviorReq.getInitializeDt().toString());
imgMap.put(Constants.QG_CAPTCHA_REGISTERDT,registerDt);
imgMap.put(Constants.QG_CAPTCHA_REGISTERREDT,registerReDt);
......
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