|
@@ -577,6 +577,42 @@ public class ChannelAction {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "个人不良信息查询V2-评分版-SM3", notes = "")
|
|
|
+ @PostMapping(value = "/getIllegalInfoV2ScoreSM3.do")
|
|
|
+ public ChannelTypeHandleResponseObject getIllegalInfoV2ScoreSM3(
|
|
|
+ @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);
|
|
|
+ }
|
|
|
+ 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 {
|