|
|
@@ -959,10 +959,16 @@ public class GuorenOrderApiServiceImpl implements GuorenOrderApiService {
|
|
|
boolean boo;
|
|
|
//构造请求参数
|
|
|
PremiumReq req = PremiumReq.buildQuoteParam(yaQuoteInfoVo, carPriceResult, vinQ);
|
|
|
- PremiumResp resp;
|
|
|
+ PremiumResp resp = null;
|
|
|
StringBuffer flag = new StringBuffer();
|
|
|
|
|
|
- for (; ; ) {
|
|
|
+ int number = 0;
|
|
|
+ for (;;) {
|
|
|
+ // 关闭死循环
|
|
|
+ if (number >= 10) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
resp = guorenRequestApiComponent.request(req, PlatformInterfaceCode.API_IIRBT00004, PremiumResp.class);
|
|
|
req.getCi().getPrpTmain().setAnswer(null);
|
|
|
req.getBi().getPrpTmain().setAnswer(null);
|
|
|
@@ -982,7 +988,7 @@ public class GuorenOrderApiServiceImpl implements GuorenOrderApiService {
|
|
|
if (!boo) {
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
+ number ++;
|
|
|
}
|
|
|
|
|
|
resp.getData().setCiStartDate(req.getCi().getPrpTmain().getStartDate());
|