Jelajahi Sumber

修复二要素超时未跳转bug

15810770710@163.com 2 tahun lalu
induk
melakukan
10c2d20efb

+ 1 - 5
src/main/java/info/aspirecn/iov/sjjh/supplier10000043/service/ChannelServiceImpl.java

@@ -276,14 +276,10 @@ public class ChannelServiceImpl implements ChannelService {
 //            String result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><RESPONSE errorcode=\"-20\" code=\"0\" countrows=\"1\"><ROWS><ROW><ErrorCode>-20</ErrorCode><ErrorMsg>计费失败,请与管理员联系(errorcode=-20)!</ErrorMsg></ROW></ROWS></RESPONSE>";
             log.info("twoElementsCheck上游返回xml:{}", result);
             upstreamCode = setTwoElementsCheckResponse(ret, returnType, result);
-        } catch (SocketTimeoutException ste) {
+        } catch (WebServiceException ste) {
             log.info("supplier10000043.twoElementsCheck接口-SocketTimeoutException:{}", ste);
             ErrorUtils.captureException(ste);
             ret.setCode(Constant.REQUEST_TIMEOUT);
-        } catch (AxisFault axisFault) {
-            log.info("supplier10000043.twoElementsCheck接口-AxisFaultException:{}", axisFault);
-            ErrorUtils.captureException(axisFault);
-            ret.setCode(Constant.REQUEST_TIMEOUT);
         } catch (Exception ioe) {
             log.info("supplier10000043.twoElementsCheck接口-Exception:{}", ioe);
             ErrorUtils.captureException(ioe);