|
|
@@ -63,7 +63,8 @@ public class HuaTaiRequestApiComponents {
|
|
|
* @param <S> Response 响应体
|
|
|
* @return <S>
|
|
|
*/
|
|
|
- private <Q extends HuaTaiBaseRequest, S extends HuaTaiBaseResponse> S post(Q q, String url, Class<S> tClass, String insuredCode, HttpHeaders httpHeaders) {
|
|
|
+ private <Q extends HuaTaiBaseRequest, S extends HuaTaiBaseResponse> S post(Q q, String url, Class<S> tClass, String insuredCode) {
|
|
|
+ HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.setContentType(MediaType.APPLICATION_JSON);
|
|
|
|
|
|
String busReqString = JSON.toJSONString(q, SerializerFeature.WriteMapNullValue, SerializerFeature.WriteNullStringAsEmpty);
|
|
|
@@ -155,12 +156,9 @@ public class HuaTaiRequestApiComponents {
|
|
|
String domain, String insuredCode) {
|
|
|
String url = domain;
|
|
|
//拼接voken的参数
|
|
|
- HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
- String votoken = getVotoken();
|
|
|
- httpHeaders.set("voken", votoken);
|
|
|
-// url=getAllUrl(url);
|
|
|
+ url=getAllUrl(url);
|
|
|
|
|
|
- S response = post(request, url, tClass, insuredCode, httpHeaders);
|
|
|
+ S response = post(request, url, tClass, insuredCode);
|
|
|
if (verify) {
|
|
|
validationResults(response);
|
|
|
}
|