|
@@ -1919,14 +1919,11 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
* @date: 2023年05月18日 0018
|
|
* @date: 2023年05月18日 0018
|
|
|
*/
|
|
*/
|
|
|
private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf,String textHead) {
|
|
private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf,String textHead) {
|
|
|
- //6 接口请求
|
|
|
|
|
-// log.debug("=========永诚API方式 - xml请求 - {}开始======", iqf.getDesc());
|
|
|
|
|
-// InsApiLog apiLog = httpPost(xmlMapper, m, reqUrl);
|
|
|
|
|
String responseData = httpPostResultLog(xmlMapper, m, reqUrl,textHead);
|
|
String responseData = httpPostResultLog(xmlMapper, m, reqUrl,textHead);
|
|
|
-// log.debug("=========永诚API方式 - xml请求 - {}结束!======", iqf.getDesc());
|
|
|
|
|
-// verifyRequest(apiLog, iac, iqf);
|
|
|
|
|
|
|
+ if(responseData.contains("报价返回信息异常")){
|
|
|
|
|
+ throw new SystemException("永诚报价请求负荷,请稍后重试。");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-// String responseData = apiLog.getResponseData();
|
|
|
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
|
try {
|
|
try {
|
|
|
response = (T) xmlMapper.readValue(cleanStr, response.getClass());
|
|
response = (T) xmlMapper.readValue(cleanStr, response.getClass());
|