Skip to content

Commit

Permalink
#1164 微信支付模块去除一些多余的错误日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziyear authored and binarywang committed Aug 20, 2019
1 parent 9750e9f commit 759bc62
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ public WxPayOrderNotifyResult parseOrderNotifyResult(String xmlData) throws WxPa
result.checkResult(this, this.getConfig().getSignType(), false);
return result;
} catch (WxPayException e) {
log.error(e.getMessage(), e);
throw e;
} catch (Exception e) {
log.error(e.getMessage(), e);
throw new WxPayException("发生异常," + e.getMessage(), e);
}
}
Expand All @@ -158,7 +156,6 @@ public WxPayRefundNotifyResult parseRefundNotifyResult(String xmlData) throws Wx
log.debug("微信支付退款异步通知解析后的对象:{}", result);
return result;
} catch (Exception e) {
log.error(e.getMessage(), e);
throw new WxPayException("发生异常," + e.getMessage(), e);
}
}
Expand All @@ -172,10 +169,8 @@ public WxScanPayNotifyResult parseScanPayNotifyResult(String xmlData) throws WxP
result.checkResult(this, this.getConfig().getSignType(), false);
return result;
} catch (WxPayException e) {
log.error(e.getMessage(), e);
throw e;
} catch (Exception e) {
log.error(e.getMessage(), e);
throw new WxPayException("发生异常," + e.getMessage(), e);
}

Expand Down Expand Up @@ -527,13 +522,12 @@ private String handleGzipBill(String url, String requestStr) {
throw WxPayException.from(BaseWxPayResult.fromXML(new String(responseBytes, StandardCharsets.UTF_8),
WxPayCommonResult.class));
} else {
this.log.error("解压zip文件出错", e);
throw new WxPayException("解压zip文件出错," + e.getMessage(), e);
}
}
} catch (Exception e) {
this.log.error("解析对账单文件时出错", e);
throw new WxPayException("解析对账单文件时出错," + e.getMessage(), e);
}

return null;
}

Expand Down Expand Up @@ -582,15 +576,13 @@ private String handleGzipFundFlow(String url, String requestStr) throws WxPayExc
throw WxPayException.from(BaseWxPayResult.fromXML(new String(responseBytes, StandardCharsets.UTF_8),
WxPayCommonResult.class));
} else {
this.log.error("解压zip文件出错", e);
throw new WxPayException("解压zip文件出错");
throw new WxPayException("解压zip文件出错", e);
}
}
} catch (WxPayException wxPayException) {
throw wxPayException;
} catch (Exception e) {
this.log.error("解析对账单文件时出错", e);
throw new WxPayException("解压zip文件出错");
throw new WxPayException("解压zip文件出错",e);
}
}

Expand Down

0 comments on commit 759bc62

Please sign in to comment.