|
@@ -6,6 +6,7 @@ import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
import com.jzg.commons.exception.SystemException;
|
|
import com.jzg.commons.exception.SystemException;
|
|
|
import com.jzg.quotation.commons.filter.CarModelsFilterUtils;
|
|
import com.jzg.quotation.commons.filter.CarModelsFilterUtils;
|
|
|
import com.jzg.quotation.taikang.crawler.CodeUtil;
|
|
import com.jzg.quotation.taikang.crawler.CodeUtil;
|
|
|
|
|
+import com.jzg.quotation.taikang.crawler.FlowIdUtil;
|
|
|
import com.jzg.quotation.taikang.crawler.JsonUtil;
|
|
import com.jzg.quotation.taikang.crawler.JsonUtil;
|
|
|
import com.jzg.quotation.taikang.crawler.client.*;
|
|
import com.jzg.quotation.taikang.crawler.client.*;
|
|
|
import com.jzg.quotation.taikang.crawler.model.TKLoginSession;
|
|
import com.jzg.quotation.taikang.crawler.model.TKLoginSession;
|
|
@@ -300,7 +301,7 @@ public class TKHttpAPIService {
|
|
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkcarrequesttoken", token);
|
|
httpHeaders.add("tkcarrequesttoken", token);
|
|
|
- httpHeaders.add("carInsurFlowId", "carInsur1778568776607661015");
|
|
|
|
|
|
|
+ httpHeaders.add("carInsurFlowId", FlowIdUtil.generateCarInsurFlowId());
|
|
|
httpHeaders.add("carInsurOrderId", orderId);
|
|
httpHeaders.add("carInsurOrderId", orderId);
|
|
|
|
|
|
|
|
StringResponse response = client.request(HttpURL.agentQuery, param, httpHeaders, StringResponse.class);
|
|
StringResponse response = client.request(HttpURL.agentQuery, param, httpHeaders, StringResponse.class);
|
|
@@ -548,7 +549,7 @@ public class TKHttpAPIService {
|
|
|
public SaveBasicInfoResult saveBasicInfo(String token, SaveBasicInfoParam param) {
|
|
public SaveBasicInfoResult saveBasicInfo(String token, SaveBasicInfoParam param) {
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
|
- httpHeaders.add("carinsurflowid", "carInsur1780310645869550725");
|
|
|
|
|
|
|
+ httpHeaders.add("carinsurflowid", FlowIdUtil.generateCarInsurFlowId());
|
|
|
httpHeaders.add("carinsurorderid", param.getOrderID());
|
|
httpHeaders.add("carinsurorderid", param.getOrderID());
|
|
|
|
|
|
|
|
SaveBasicInfoResult.Response response = client.request(HttpURL.saveBasicInfo, param, httpHeaders, SaveBasicInfoResult.Response.class);
|
|
SaveBasicInfoResult.Response response = client.request(HttpURL.saveBasicInfo, param, httpHeaders, SaveBasicInfoResult.Response.class);
|
|
@@ -590,7 +591,7 @@ public class TKHttpAPIService {
|
|
|
param.setTplatLoginKey(tplatLoginKey);
|
|
param.setTplatLoginKey(tplatLoginKey);
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
|
- httpHeaders.add("carinsurflowid", "carInsur1780302178294459227");
|
|
|
|
|
|
|
+ httpHeaders.add("carinsurflowid", FlowIdUtil.generateCarInsurFlowId());
|
|
|
httpHeaders.add("carinsurorderid", orderId);
|
|
httpHeaders.add("carinsurorderid", orderId);
|
|
|
StringResponse response = client.request(HttpURL.preciseInit, param, httpHeaders, StringResponse.class);
|
|
StringResponse response = client.request(HttpURL.preciseInit, param, httpHeaders, StringResponse.class);
|
|
|
checkResponseUnknownField(response);
|
|
checkResponseUnknownField(response);
|
|
@@ -612,6 +613,7 @@ public class TKHttpAPIService {
|
|
|
param.setChgOwnerInfo(TKChgOwnerInfo);
|
|
param.setChgOwnerInfo(TKChgOwnerInfo);
|
|
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
|
|
+ httpHeaders.add("carinsurflowid", FlowIdUtil.generateCarInsurFlowId());
|
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
|
|
|
|
|
|
PreciseInitResult.Response response = client.request(HttpURL.preciseInit, param, httpHeaders, PreciseInitResult.Response.class);
|
|
PreciseInitResult.Response response = client.request(HttpURL.preciseInit, param, httpHeaders, PreciseInitResult.Response.class);
|
|
@@ -1193,7 +1195,7 @@ public class TKHttpAPIService {
|
|
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
httpHeaders.add("tkCarRequestToken", token);
|
|
|
- httpHeaders.add("carInsurFlowId", "carInsur1778568776607661015");
|
|
|
|
|
|
|
+ httpHeaders.add("carInsurFlowId", FlowIdUtil.generateCarInsurFlowId());
|
|
|
httpHeaders.add("carInsurOrderId", orderId);
|
|
httpHeaders.add("carInsurOrderId", orderId);
|
|
|
Object response = client.request(HttpURL.carCheckUploadFileSubmit, param, httpHeaders, Object.class);
|
|
Object response = client.request(HttpURL.carCheckUploadFileSubmit, param, httpHeaders, Object.class);
|
|
|
log.info("上传影像提交完成,响应: {}", JSONObject.toJSONString(response));
|
|
log.info("上传影像提交完成,响应: {}", JSONObject.toJSONString(response));
|