|
|
@@ -543,19 +543,30 @@ public class TaiKangHttpService {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public AgentTaxResult initQuotation(String tplatformId, String orderId) {
|
|
|
- AgentTaxParam param = new AgentTaxParam();
|
|
|
+ public InitQuotationResult initQuotation(String tplatformId, String orderId) {
|
|
|
+ InitQuotationParam param = new InitQuotationParam();
|
|
|
param.setChannelCode("OffWeb");
|
|
|
param.setOrderID(orderId);
|
|
|
- param.setTplatformId(tplatformId);
|
|
|
+ param.setInitFlag("1");
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkCarRequestToken", token());
|
|
|
|
|
|
- AgentTaxResult.Response response = client.request(HttpURL.initQuotation, param, httpHeaders, AgentTaxResult.Response.class);
|
|
|
+ StringResponse response = client.request(HttpURL.initQuotation, param, httpHeaders, StringResponse.class);
|
|
|
|
|
|
checkResponseUnknownField(response);
|
|
|
|
|
|
- return response.getData();
|
|
|
+ // 解密
|
|
|
+ String json = AESDecryptor.decrypt(response.getData());
|
|
|
+
|
|
|
+ if (logger.isInfoEnabled()) {
|
|
|
+ logger.info("TaiKangHttpClient initQuotation decrypt body: {}", json);
|
|
|
+ }
|
|
|
+
|
|
|
+ InitQuotationResult.Response response1 = JsonUtil.readObjcet(json, InitQuotationResult.Response.class);
|
|
|
+
|
|
|
+ checkResponseUnknownField(response1);
|
|
|
+
|
|
|
+ return response1.getData();
|
|
|
}
|
|
|
}
|