Fix:湖南电信
This commit is contained in:
parent
e02a8108f7
commit
be16384de2
|
@ -152,14 +152,14 @@ public class HuNanDXApi {
|
||||||
try (CloseableHttpClient httpClient = createHttpClientIgnoreSSL()) {
|
try (CloseableHttpClient httpClient = createHttpClientIgnoreSSL()) {
|
||||||
String baseUrl = config.getBaseUrl();
|
String baseUrl = config.getBaseUrl();
|
||||||
logVO.setUrl(baseUrl);
|
logVO.setUrl(baseUrl);
|
||||||
logVO.setParam(JSON.toJSONString(requestBody));
|
String jsonString = JSON.toJSONString(requestBody);
|
||||||
|
logVO.setParam(jsonString);
|
||||||
HttpPost httpPost = new HttpPost(baseUrl);
|
HttpPost httpPost = new HttpPost(baseUrl);
|
||||||
httpPost.setHeader("Content-Type", "application/json; charset=UTF-8");
|
httpPost.setHeader("Content-Type", "application/json; charset=UTF-8");
|
||||||
httpPost.setEntity(new StringEntity(new ObjectMapper().writeValueAsString(requestBody)));
|
httpPost.setEntity(new StringEntity(jsonString,"utf-8"));
|
||||||
|
|
||||||
|
|
||||||
CloseableHttpResponse response = httpClient.execute(httpPost);
|
CloseableHttpResponse response = httpClient.execute(httpPost);
|
||||||
String string = EntityUtils.toString(response.getEntity());
|
String string = EntityUtils.toString(response.getEntity(),"utf-8");
|
||||||
logVO.setResponse(JSON.toJSONString(string));
|
logVO.setResponse(JSON.toJSONString(string));
|
||||||
httpClient.close();
|
httpClient.close();
|
||||||
return string;
|
return string;
|
||||||
|
|
|
@ -124,7 +124,8 @@ public class HuNanDxApiDealStrategy implements ApiDealStrategy {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HaiNanDxInfo.ResponseInfo<HaiNanDxInfo.InternetCardQualificationResp> checked = apiHuNanDXService.checkInternetCardQualification(logVO, haokaSuperiorApiId,cardQualificationParam);
|
HaiNanDxInfo.ResponseInfo<HaiNanDxInfo.InternetCardQualificationResp> checked =
|
||||||
|
apiHuNanDXService.checkInternetCardQualification(logVO, haokaSuperiorApiId,cardQualificationParam);
|
||||||
OrderApiCreateResp superApiResponse = new OrderApiCreateResp();
|
OrderApiCreateResp superApiResponse = new OrderApiCreateResp();
|
||||||
if (!"00000".equals(checked.getRes_code())) {
|
if (!"00000".equals(checked.getRes_code())) {
|
||||||
logVO.setResponse(JSON.toJSONString(checked));
|
logVO.setResponse(JSON.toJSONString(checked));
|
||||||
|
|
Loading…
Reference in New Issue