|
|
@@ -543,7 +543,39 @@ public class TaiKangHttpService {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public InitQuotationResult initQuotation(String tplatformId, String orderId) {
|
|
|
+ public InitQuotationResult initQuotationFlag1(String tplatformId, String orderId) {
|
|
|
+ InitQuotationParam param = new InitQuotationParam();
|
|
|
+ param.setChannelCode("OffWeb");
|
|
|
+ param.setOrderID(orderId);
|
|
|
+ param.setInitFlag("1");
|
|
|
+
|
|
|
+ HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
+ httpHeaders.add("tkCarRequestToken", token());
|
|
|
+
|
|
|
+ StringResponse response = client.request(HttpURL.initQuotation, param, httpHeaders, StringResponse.class);
|
|
|
+
|
|
|
+ checkResponseUnknownField(response);
|
|
|
+
|
|
|
+ // 解密
|
|
|
+ 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();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public InitQuotationResult initQuotationFlag2(String tplatformId, String orderId) {
|
|
|
InitQuotationParam param = new InitQuotationParam();
|
|
|
param.setChannelCode("OffWeb");
|
|
|
param.setOrderID(orderId);
|