|
@@ -33,7 +33,8 @@ public class HttpService {
|
|
|
private String token() {
|
|
private String token() {
|
|
|
if (token != null) {
|
|
if (token != null) {
|
|
|
return token;
|
|
return token;
|
|
|
- } if (tokenTest != null) {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (tokenTest != null) {
|
|
|
return tokenTest;
|
|
return tokenTest;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -137,12 +138,12 @@ public class HttpService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 02 各种证件类型
|
|
* 02 各种证件类型
|
|
|
- *
|
|
|
|
|
|
|
+ * <p>
|
|
|
* 1 组织机构代码证
|
|
* 1 组织机构代码证
|
|
|
* 4 统一社会信用代码
|
|
* 4 统一社会信用代码
|
|
|
* 99 其他
|
|
* 99 其他
|
|
|
- *
|
|
|
|
|
- *
|
|
|
|
|
|
|
+ * <p>
|
|
|
|
|
+ * <p>
|
|
|
* 01 居民身份证
|
|
* 01 居民身份证
|
|
|
* 03 军人证
|
|
* 03 军人证
|
|
|
* 07 护照
|
|
* 07 护照
|
|
@@ -300,7 +301,7 @@ public class HttpService {
|
|
|
* @param tplatformId
|
|
* @param tplatformId
|
|
|
* @param orderId
|
|
* @param orderId
|
|
|
* @param tkAgentFuzzy 渠道
|
|
* @param tkAgentFuzzy 渠道
|
|
|
- * @param agentCode 代理人代码
|
|
|
|
|
|
|
+ * @param agentCode 代理人代码
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public TKAgentQueryResult agentQuery(String tplatformId, String orderId, TKAgentFuzzy tkAgentFuzzy, String agentCode) {
|
|
public TKAgentQueryResult agentQuery(String tplatformId, String orderId, TKAgentFuzzy tkAgentFuzzy, String agentCode) {
|
|
@@ -642,13 +643,14 @@ public class HttpService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 此接口的含义大概是对上一步提交的投保的险种和计算好的保价进行保存。
|
|
* 此接口的含义大概是对上一步提交的投保的险种和计算好的保价进行保存。
|
|
|
- *
|
|
|
|
|
|
|
+ * <p>
|
|
|
* 选择了投保险种计算了保费后,点击下一步操作的接口,进入下一个页面“录入保费信息”。
|
|
* 选择了投保险种计算了保费后,点击下一步操作的接口,进入下一个页面“录入保费信息”。
|
|
|
|
|
+ * <p>
|
|
|
|
|
+ * 虽然响应 SaveQuoteResult 中有几十个字段,但只有 orderID 有值,与参数的 orderID 一样。
|
|
|
*
|
|
*
|
|
|
- * 虽然响应 SaveQuoteResult 中有几十个字段,但只有 orderID 有值,与参数的 orderID 一样。
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public SaveQuoteResult saveQuote(String tplatformId, String fromId, String orderId) {
|
|
|
|
|
|
|
+ public SaveQuoteResult saveQuote(String tplatformId, String fromId, String orderId) {
|
|
|
SaveQuoteParam param = new SaveQuoteParam();
|
|
SaveQuoteParam param = new SaveQuoteParam();
|
|
|
param.setChannelCode("OffWeb");
|
|
param.setChannelCode("OffWeb");
|
|
|
param.setTplatformId(tplatformId);
|
|
param.setTplatformId(tplatformId);
|
|
@@ -665,8 +667,6 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
- *
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public FloatNoticeGetResult floatNoticeGet(String tplatformId, String orderId) {
|
|
public FloatNoticeGetResult floatNoticeGet(String tplatformId, String orderId) {
|
|
@@ -719,11 +719,9 @@ public class HttpService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 特别约定
|
|
* 特别约定
|
|
|
- *
|
|
|
|
|
|
|
+ * <p>
|
|
|
* 好像是个查询可用的特别约定。
|
|
* 好像是个查询可用的特别约定。
|
|
|
*
|
|
*
|
|
|
- *
|
|
|
|
|
- *
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public List<EngageEngageQueryResult> engageEngageQuery(String tplatformId, String fromId, String orderId, EngageEngageQueryParam.Privy privy) {
|
|
public List<EngageEngageQueryResult> engageEngageQuery(String tplatformId, String fromId, String orderId, EngageEngageQueryParam.Privy privy) {
|
|
@@ -743,8 +741,6 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
- *
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public Map<String, String> initFindRiskConfig(String tplatformId) {
|
|
public Map<String, String> initFindRiskConfig(String tplatformId) {
|
|
@@ -763,8 +759,6 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
- *
|
|
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public GroupOrderGetNewNoticeStatusResult groupOrderGetNewNoticeStatus(String tplatformId) {
|
|
public GroupOrderGetNewNoticeStatusResult groupOrderGetNewNoticeStatus(String tplatformId) {
|
|
@@ -782,7 +776,6 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
* entrance 返回的数据是加密数据的情况
|
|
* entrance 返回的数据是加密数据的情况
|
|
|
*
|
|
*
|
|
|
* @return
|
|
* @return
|
|
@@ -819,22 +812,13 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
* entrance 返回的数据是字符串的情况
|
|
* entrance 返回的数据是字符串的情况
|
|
|
*
|
|
*
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public String entranceForString(String tplatformId, String fromId, String orderId) {
|
|
|
|
|
- EntranceParam param = new EntranceParam();
|
|
|
|
|
- param.setChannelCode("OffWeb");
|
|
|
|
|
- param.setFromID(fromId);
|
|
|
|
|
- param.setOrderID(orderId);
|
|
|
|
|
- param.setLeadsid("");
|
|
|
|
|
- param.setReadTime("");
|
|
|
|
|
- param.setIdcardOcrFlag("");
|
|
|
|
|
- param.setCollectFlag("");
|
|
|
|
|
-
|
|
|
|
|
|
|
+ public String entranceForString(Object param, String actionType) {
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
|
|
+ httpHeaders.add("Actiontype", actionType);
|
|
|
httpHeaders.add("tkCarRequestToken", token());
|
|
httpHeaders.add("tkCarRequestToken", token());
|
|
|
|
|
|
|
|
StringResponse response = client.request(HttpURL.entrance, param, httpHeaders, StringResponse.class);
|
|
StringResponse response = client.request(HttpURL.entrance, param, httpHeaders, StringResponse.class);
|
|
@@ -844,6 +828,7 @@ public class HttpService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通用接口,且返回的数据是未加密的 json 数据的情况
|
|
* 通用接口,且返回的数据是未加密的 json 数据的情况
|
|
|
|
|
+ *
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public <B> B entranceForJson(Object param, String actionType, Class<B> responseType) {
|
|
public <B> B entranceForJson(Object param, String actionType, Class<B> responseType) {
|
|
@@ -857,8 +842,8 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
* entrance 返回的数据是 json 的情况
|
|
* entrance 返回的数据是 json 的情况
|
|
|
|
|
+ *
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public EntranceResult entranceFor000012(String tplatformId, String fromId, String orderId, TKInsureInfo insureInfo) {
|
|
public EntranceResult entranceFor000012(String tplatformId, String fromId, String orderId, TKInsureInfo insureInfo) {
|
|
@@ -875,8 +860,8 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- *
|
|
|
|
|
* entrance 返回的数据是 json 的情况
|
|
* entrance 返回的数据是 json 的情况
|
|
|
|
|
+ *
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public TKEntranceFor000038Result entranceFor000038(String tplatformId, String fromId, String orderId) {
|
|
public TKEntranceFor000038Result entranceFor000038(String tplatformId, String fromId, String orderId) {
|
|
@@ -893,8 +878,26 @@ public class HttpService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * 获取验车码
|
|
|
|
|
+ * entrance
|
|
|
*
|
|
*
|
|
|
- *
|
|
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ public String entranceFor000133(String orderId) {
|
|
|
|
|
+ EntranceParam param = new EntranceParam();
|
|
|
|
|
+ param.setChannelCode("OffWeb");
|
|
|
|
|
+ param.setOrderID(orderId);
|
|
|
|
|
+
|
|
|
|
|
+ String response = entranceForString(param, "000133");
|
|
|
|
|
+
|
|
|
|
|
+ if (response != null) {
|
|
|
|
|
+ response = response.replace("验车码:", "");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return response;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public String carCheckAttorneyList(String tplatformId, String proposalNo) {
|
|
public String carCheckAttorneyList(String tplatformId, String proposalNo) {
|