|
@@ -114,13 +114,21 @@ public class RequestSTKServiceImpl implements RequestSTKService {
|
|
|
log.info("深投控,新增修改客商信息数据为空");
|
|
|
return new SaveOrChangeCustomerVo();
|
|
|
}
|
|
|
+
|
|
|
+ //头部请求参数
|
|
|
+ Map<String,String> headerMap = null;
|
|
|
+ try {
|
|
|
+ headerMap = getHeaderMap(sourceDataList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("STK加密异常:{}",e.getMessage());
|
|
|
+ }
|
|
|
//新增修改客商信息对象集合
|
|
|
//List<SaveOrChangeCustomerDetailDto> detailDtos = doSaveOrUpdateCustomerParam(sourceDataList);
|
|
|
|
|
|
//调用深投控新增修改客商信息
|
|
|
SaveOrChangeCustomerDto changeCustomerDto = new SaveOrChangeCustomerDto();
|
|
|
changeCustomerDto.setParam(sourceDataList);
|
|
|
- HttpResultResponse resultResponse = HuToolUtils.post(SAVE_OR_UPDATE_URL+SAVE_OR_UPDATE_REQUEST_CODE,changeCustomerDto);
|
|
|
+ HttpResultResponse resultResponse = HuToolUtils.post(SAVE_OR_UPDATE_URL+SAVE_OR_UPDATE_REQUEST_CODE,changeCustomerDto,headerMap);
|
|
|
log.info("深投控,新增修改客商信息,返回结果数据{}",JSONObject.toJSONString(resultResponse));
|
|
|
if(!resultResponse.getSuccess()){
|
|
|
log.info("深投控,新增修改客商信息数据异常:{}",resultResponse.getMessage());
|