|
@@ -164,18 +164,18 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
|
String fileName = waybillOriginEndRequest.getFilename();
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
try {
|
|
|
- log.info("NoCarInterfaceImpl.waybillOrgEnd请求参数:{}", waybillOriginEndRequest.toString());
|
|
|
+ log.info("NoCarInterfaceImpl.waybillOrgEnd请求参数:{}", StringUtil.removeJSonField(waybillOriginEndRequest.toString(),"base64Str"));
|
|
|
//(4)指定协议的响应模型(IssuerUploadResponse),调用upload 发送数据
|
|
|
WaybillOriginEndResponse response = ETCCommHelper.upload(fileName, waybillOriginEndRequest, WaybillOriginEndResponse.class);
|
|
|
- log.info("NoCarInterfaceImpl.waybillOrgEnd上游接口返回:{},请求参数:{},cost={}ms", response.toString(), waybillOriginEndRequest.toString(), System.currentTimeMillis() - startTime);
|
|
|
+ log.info("NoCarInterfaceImpl.waybillOrgEnd上游接口返回:{},请求参数:{},cost={}ms", response.toString(), StringUtil.removeJSonField(waybillOriginEndRequest.toString(),"base64Str"), System.currentTimeMillis() - startTime);
|
|
|
|
|
|
return new RespR<>(response);
|
|
|
} catch (IOException e) {
|
|
|
- log.error(e.getMessage() + " ,请求参数:" + waybillOriginEndRequest.toString() + " ,cost=" + (System.currentTimeMillis() - startTime) + "ms");
|
|
|
+ log.error(e.getMessage() + " ,请求参数:" + StringUtil.removeJSonField(waybillOriginEndRequest.toString(),"base64Str") + " ,cost=" + (System.currentTimeMillis() - startTime) + "ms");
|
|
|
e.printStackTrace();
|
|
|
return new RespR(false, "网络异常,请联系管理人员");
|
|
|
} catch (ApiRequestException apie) {
|
|
|
- log.error(apie.getMessage().replaceAll("[\r\n]", "") + " ,请求参数:" + waybillOriginEndRequest.toString() + " ,cost=" + (System.currentTimeMillis() - startTime) + "ms");
|
|
|
+ log.error(apie.getMessage().replaceAll("[\r\n]", "") + " ,请求参数:" + StringUtil.removeJSonField(waybillOriginEndRequest.toString(),"base64Str") + " ,cost=" + (System.currentTimeMillis() - startTime) + "ms");
|
|
|
apie.printStackTrace();
|
|
|
return new RespR(false, apie.getMessage());
|
|
|
}
|