|
|
@@ -542,7 +542,7 @@ public class TaiKangHttpService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ * 查看报价单
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -550,15 +550,28 @@ public class TaiKangHttpService {
|
|
|
InitQuotationParam param = new InitQuotationParam();
|
|
|
param.setChannelCode("OffWeb");
|
|
|
param.setOrderID(orderId);
|
|
|
- // 注意:查看报价单时的 initFlag 参数为 1
|
|
|
+ // 注意:查看报价单时的 initFlag 参数为 1,必须传上此参数,且必须为1。
|
|
|
param.setInitFlag("1");
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
httpHeaders.add("tkCarRequestToken", token());
|
|
|
|
|
|
- InitQuotationResult.Response response = client.request(HttpURL.initQuotation, param, httpHeaders, InitQuotationResult.Response.class);
|
|
|
+ StringResponse response = client.request(HttpURL.initQuotation, param, httpHeaders, StringResponse.class);
|
|
|
|
|
|
- return response.getData();
|
|
|
+ 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();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -582,8 +595,11 @@ public class TaiKangHttpService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 此接口的含义大概是对上一步提交的投保的险种和计算好的保价进行保存。
|
|
|
*
|
|
|
+ * 选择了投保险种计算了保费后,点击下一步操作的接口,进入下一个页面“录入保费信息”
|
|
|
*
|
|
|
+ * 虽然响应 SaveQuoteResult 中有几十个字段,但只有 orderID 有值,与参数的 orderID 一样。
|
|
|
* @return
|
|
|
*/
|
|
|
public SaveQuoteResult saveQuote(String tplatformId, String fromId, String orderId) {
|
|
|
@@ -656,6 +672,10 @@ public class TaiKangHttpService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 特别约定
|
|
|
+ *
|
|
|
+ * 好像是个查询可用的特别约定。
|
|
|
+ *
|
|
|
*
|
|
|
*
|
|
|
* @return
|