|
|
@@ -500,6 +500,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
//晋AB8H22存在有效交强险保单,请核实保期进入续保期后再进行投保。
|
|
|
//{"erroeInfo":"投保业务:投保业务:中国银保信交强险平台友情提示:号牌号码“晋AB8H22”的保单发生重复投保,与其重复投保的本公司的保单信息如下:车架号 LGWEF4A54HF017616;发动机号 1725032719;地区 山西。","erroeType":"01","errrorFlag":"true"}
|
|
|
if(decryptData.contains("erroeInfo") && decryptData.contains("发生重复投保") && !decryptData.contains("终保日期")) {
|
|
|
+ retryCount = maxRetries + 1;
|
|
|
HtCrawlerQuoteResponse.DataErrDTO dataErr = JSONObject.parseObject(decryptData, HtCrawlerQuoteResponse.DataErrDTO.class);
|
|
|
throw new RuntimeException("报价失败:"+dataErr.getErroeInfo().substring(dataErr.getErroeInfo().indexOf("中国")));
|
|
|
}
|
|
|
@@ -639,7 +640,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
System.out.println("quoteResponseData.getApplicationdto() 为 null,第 " + retryCount + " 次重试...");
|
|
|
|
|
|
if (retryCount >= maxRetries) {
|
|
|
- throw new RuntimeException("报价重试次数已达上限(" + maxRetries + "次),仍然无法获取 applicationdto");
|
|
|
+ throw new RuntimeException("报价重试次数已达上限,仍然无法获取数据");
|
|
|
}
|
|
|
}
|
|
|
} catch (RuntimeException e) {
|
|
|
@@ -650,7 +651,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
System.out.println("报价异常,第 " + retryCount + " 次重试... 异常信息: " + e.getMessage());
|
|
|
|
|
|
if (retryCount >= maxRetries) {
|
|
|
- throw new RuntimeException("报价重试次数已达上限(" + maxRetries + "次): " + e.getMessage());
|
|
|
+ throw new RuntimeException("报价重试次数已达上限: " + e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
@@ -664,7 +665,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
System.out.println("报价异常,第 " + retryCount + " 次重试... 异常信息: " + e.getMessage());
|
|
|
|
|
|
if (retryCount >= maxRetries) {
|
|
|
- throw new RuntimeException("报价重试次数已达上限(" + maxRetries + "次): " + e.getMessage());
|
|
|
+ throw new RuntimeException("报价重试次数已达上限: " + e.getMessage());
|
|
|
}
|
|
|
|
|
|
try {
|