Commit bf606e38 authored by 李健华's avatar 李健华

记录极验验证返回空不记录日志

parent 4837cb43
......@@ -67,7 +67,7 @@ public class NewCaptchaController {
imgMap = geetestCaptchaService.fetchGeetestCaptcha(keyMd5, remoteIp, ClientType.valueByName(clientType));
data.put(Constants.VERIFY_PARAM, Constants.VERIFY_TYPE_GT);
// 存储极验日志,phone_no, datasource, setting, challenge, captchaid
if (StringUtils.isNotBlank(settingType)) {
if (StringUtils.isNotBlank(settingType) && null != imgMap) {
geetestLogId = geetestLogService.saveGeetestLog(phoneNo, clientType, settingType, imgMap);
}
......@@ -109,7 +109,9 @@ public class NewCaptchaController {
imgMap = geetestCaptchaService.fetchGeetestCaptchaPasswd(keyMd5, remoteIp, ClientType.valueByName(clientType));
data.put(Constants.VERIFY_PARAM, Constants.VERIFY_TYPE_GT);
// 存储极验日志,phone_no, datasource, setting, challenge, captchaid
if (StringUtils.isNotBlank(settingType) && null != imgMap) {
geetestLogId = geetestLogService.saveGeetestLog(phoneNo, clientType, settingType, imgMap);
}
// 返回结果
if (Objects.isNull(imgMap) || imgMap.isEmpty()) {
......
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