|
@@ -14,6 +14,8 @@ import com.hrsk.cloud.eg.vo.response.DataVo;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.http.HttpEntity;
|
|
|
+import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -77,9 +79,10 @@ public class HuirongCrmCreditService implements LoanDockingApi {
|
|
|
log.info("credit qualityCheck HuirongCrmCreditService request userId:{}, url:{},requestParam:{}", userInfo.getUserId(), url, requestJson);
|
|
|
ResultHt response = null;
|
|
|
try {
|
|
|
- Map<String, String> head = new HashMap<>();
|
|
|
- head.put("Content-Type", "application/json");
|
|
|
- response = httpRestTemplate.restTemplate().postForObject(url,head,ResultHt.class, checkData);
|
|
|
+ HttpHeaders headers = new HttpHeaders();
|
|
|
+ headers.set("Content-Type", "application/json");
|
|
|
+ HttpEntity httpEntity = new HttpEntity<>(requestJson,headers);
|
|
|
+ response = httpRestTemplate.restTemplate().postForObject(url,httpEntity,ResultHt.class);
|
|
|
log.info("hui ron result {}",JSONObject.toJSONString(response));
|
|
|
} catch (Exception e) {
|
|
|
log.error("惠融crm准入异常,异常信息:{}", e.getMessage(), e);
|