|
@@ -248,7 +248,8 @@ public class ChannelAction {
|
|
|
HttpServletRequest request = servletRequestAttributes.getRequest();
|
|
|
ChannelTypeHandleResponseObject responseObject = new ChannelTypeHandleResponseObject();
|
|
|
try {
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SIMPLE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SIMPLE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
|
recodeIllegalInfoV2RequestLog(responseObject, request, customBody);
|
|
@@ -276,7 +277,8 @@ public class ChannelAction {
|
|
|
HttpServletRequest request = servletRequestAttributes.getRequest();
|
|
|
ChannelTypeHandleResponseObject responseObject = new ChannelTypeHandleResponseObject();
|
|
|
try {
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SCORE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SCORE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
|
recodeIllegalInfoV2RequestLog(responseObject, request, customBody);
|
|
@@ -304,7 +306,8 @@ public class ChannelAction {
|
|
|
HttpServletRequest request = servletRequestAttributes.getRequest();
|
|
|
ChannelTypeHandleResponseObject responseObject = new ChannelTypeHandleResponseObject();
|
|
|
try {
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_RESULT);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_RESULT, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
|
recodeIllegalInfoV2RequestLog(responseObject, request, customBody);
|
|
@@ -339,7 +342,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -375,7 +379,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SIMPLE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SIMPLE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -417,7 +422,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SCORE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SCORE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -453,7 +459,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SCORE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SCORE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -489,7 +496,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -525,7 +533,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_DRUG_ESCAPE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -561,7 +570,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SIMPLE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SIMPLE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -597,7 +607,8 @@ public class ChannelAction {
|
|
|
if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
customBody = decodeCustomBody;
|
|
|
// 调用业务接口
|
|
|
- responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime, ChannelConstant.ILLEGAL_INFO_SCORE);
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SCORE, ChannelConstant.ILLEGAL_INFO_METHOD_NORMAL_RESPONSE);
|
|
|
}
|
|
|
log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
|
|
@@ -613,6 +624,45 @@ public class ChannelAction {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "个人不良信息查询V2-评分版-SM3-拼接版", notes = "")
|
|
|
+ @PostMapping(value = "/getIllegalInfoV2ScoreSM3Criminal.do")
|
|
|
+ public ChannelTypeHandleResponseObject getIllegalInfoV2ScoreSM3Criminal(
|
|
|
+ @ApiParam(value = "通道ID") @RequestHeader(name = "channelId") String channelId,
|
|
|
+ @ApiParam(value = "超时时间,单位:毫秒", example = "10000") @RequestParam(name = "outTime", required = true) int outTime,
|
|
|
+ @ApiParam(value = "请求参数JSON串") @RequestParam(name = "customBody", required = true) String customBody) {
|
|
|
+ log.info("个人不良信息查询V2-评分版SM3请求--->channelId:{}--->outTime:{},--->customBody:{}", channelId, outTime, customBody);
|
|
|
+ Long startTime = System.currentTimeMillis();
|
|
|
+ //日志记录通道类型 - 同步
|
|
|
+ ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
|
+ HttpServletRequest request = servletRequestAttributes.getRequest();
|
|
|
+ ChannelTypeHandleResponseObject responseObject = new ChannelTypeHandleResponseObject();
|
|
|
+ try {
|
|
|
+ // scm解密
|
|
|
+ String decodeCustomBody = channelService.getDecodeIdCard(request, customBody, outTime, ChannelConstant.DECODE_TYPE_SM3, responseObject);
|
|
|
+ log.info("scm解密耗时:{}", System.currentTimeMillis() - startTime);
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(decodeCustomBody)) {
|
|
|
+ customBody = decodeCustomBody;
|
|
|
+ // 调用业务接口
|
|
|
+ responseObject = channelService.validateIllegalInfoV2(request, customBody, outTime,
|
|
|
+ ChannelConstant.ILLEGAL_INFO_SCORE, ChannelConstant.ILLEGAL_INFO_METHOD_SPECIAL);
|
|
|
+ }
|
|
|
+ log.info("调用业务接口时延:{}", System.currentTimeMillis() - startTime);
|
|
|
+
|
|
|
+ recodeIllegalInfoV2RequestLog(responseObject, request, customBody);
|
|
|
+ if (System.currentTimeMillis() - startTime < delayedTime) {
|
|
|
+ delay();
|
|
|
+ }
|
|
|
+ log.info("action总体耗时:{}", System.currentTimeMillis() - startTime);
|
|
|
+ return responseObject;
|
|
|
+ } catch (Exception ex) {
|
|
|
+ log.error("message:{}", ex);
|
|
|
+ return responseObject;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private void delay() {
|
|
|
Long startTime = System.currentTimeMillis();
|
|
|
try {
|