|
|
@@ -5,6 +5,7 @@ import com.jzg.quotation.taikang.model.api.*;
|
|
|
import com.jzg.quotation.taikang.model.entity.TKAgentFuzzy;
|
|
|
import com.jzg.quotation.taikang.model.entity.TKChgOwnerInfo;
|
|
|
import com.jzg.quotation.taikang.model.entity.TKInsureInfo;
|
|
|
+import jakarta.annotation.Resource;
|
|
|
import lombok.Setter;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
@@ -19,6 +20,7 @@ import java.util.Map;
|
|
|
public class HttpService {
|
|
|
private static final Logger logger = LoggerFactory.getLogger(HttpService.class);
|
|
|
|
|
|
+ @Resource
|
|
|
private HttpClient client;
|
|
|
|
|
|
/**
|
|
|
@@ -62,7 +64,7 @@ public class HttpService {
|
|
|
param.setPassword(encrypted);
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
- httpHeaders.add("Authorization", token);
|
|
|
+ httpHeaders.add("tkcarrequesttoken", token);
|
|
|
httpHeaders.add("actiontype", "queryClaimData");
|
|
|
|
|
|
LoginResult.Response response = client.request(HttpURL.login, param, httpHeaders, LoginResult.Response.class);
|