|
@@ -52,12 +52,17 @@ public class ZhongAnAPIService {
|
|
|
* 查询保单地址
|
|
* 查询保单地址
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public ZhongAnQueryCarInfoResult queryCarInfo(String token, String orderNo) {
|
|
|
|
|
|
|
+ public ZhongAnQueryCarInfoResult queryCarInfo(String token, String flowId) {
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
headers.add("Cookie", token);
|
|
headers.add("Cookie", token);
|
|
|
|
|
|
|
|
MultiValueMap<String, String> param = new LinkedMultiValueMap<>();
|
|
MultiValueMap<String, String> param = new LinkedMultiValueMap<>();
|
|
|
- param.set("orderNo", orderNo);
|
|
|
|
|
|
|
+ param.set("flowId", flowId);
|
|
|
|
|
+ param.set("vehicleFrameNo", "");
|
|
|
|
|
+ param.set("passCheck", "");
|
|
|
|
|
+ param.set("page", "%2FbaseInfo");
|
|
|
|
|
+ param.set("i", "e");
|
|
|
|
|
+ param.set("flag", "0");
|
|
|
|
|
|
|
|
ZhongAnQueryCarInfoResult.Response response = form(ZhongAnAPI.QueryCarInfo, param, ZhongAnQueryCarInfoResult.Response.class, headers);
|
|
ZhongAnQueryCarInfoResult.Response response = form(ZhongAnAPI.QueryCarInfo, param, ZhongAnQueryCarInfoResult.Response.class, headers);
|
|
|
|
|
|
|
@@ -170,6 +175,7 @@ public class ZhongAnAPIService {
|
|
|
* 目前观察到的一次登录会话中, cacheCarInfo 保存的数据是全局共享的,不具备数据隔离性:
|
|
* 目前观察到的一次登录会话中, cacheCarInfo 保存的数据是全局共享的,不具备数据隔离性:
|
|
|
* 1、会被后续的报价接口 {@link #premiumTrial}、 {@link #queryCarInfo} 使用到。
|
|
* 1、会被后续的报价接口 {@link #premiumTrial}、 {@link #queryCarInfo} 使用到。
|
|
|
* 2、如果同时对多个车信息保存并报价,最后一次保存的车数据会将之前的其它车的数据覆盖,最终导致 premiumTrial 只会对最后一个车进行报价。
|
|
* 2、如果同时对多个车信息保存并报价,最后一次保存的车数据会将之前的其它车的数据覆盖,最终导致 premiumTrial 只会对最后一个车进行报价。
|
|
|
|
|
+ * 3、也可能与 flowId 有关系
|
|
|
*
|
|
*
|
|
|
* @param token
|
|
* @param token
|
|
|
* @param zhongAnCacheCarInfoParam
|
|
* @param zhongAnCacheCarInfoParam
|