|
|
@@ -640,4 +640,39 @@ public class TaiKangHttpService {
|
|
|
|
|
|
return response.getData();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public InitProposalResult initProposal(String tplatformId, String tplatLoginKey, String orderId) {
|
|
|
+ InitProposalParam param = new InitProposalParam();
|
|
|
+ param.setChannelCode("OffWeb");
|
|
|
+ param.setOrderID(orderId);
|
|
|
+ param.setTplatformId(tplatformId);
|
|
|
+ param.setTplatLoginKey(tplatLoginKey);
|
|
|
+
|
|
|
+
|
|
|
+ HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
+ httpHeaders.add("tkCarRequestToken", token());
|
|
|
+
|
|
|
+ StringResponse response = client.request(HttpURL.initProposal, param, httpHeaders, StringResponse.class);
|
|
|
+
|
|
|
+ checkResponseUnknownField(response);
|
|
|
+
|
|
|
+ // 解密
|
|
|
+ String json = AESDecryptor.decrypt(response.getData());
|
|
|
+
|
|
|
+ if (logger.isInfoEnabled()) {
|
|
|
+ logger.info("TaiKangHttpClient initQuotation decrypt body: {}", json);
|
|
|
+ }
|
|
|
+
|
|
|
+ InitProposalResult.Response response1 = JsonUtil.readObjcet(json, InitProposalResult.Response.class);
|
|
|
+
|
|
|
+ checkResponseUnknownField(response1);
|
|
|
+
|
|
|
+ return response1.getData();
|
|
|
+ }
|
|
|
}
|