优化微信支付请求代码

This commit is contained in:
Binary Wang
2017-06-30 17:14:55 +08:00
parent c494fbe71d
commit 61d933196c
3 changed files with 42 additions and 40 deletions

View File

@@ -119,7 +119,7 @@ public abstract class WxPayBaseRequest {
try {
BeanUtils.checkRequiredFields(this);
} catch (WxErrorException e) {
throw new WxPayException(e.getError().getErrorMsg());
throw new WxPayException(e.getError().getErrorMsg(), e);
}
//check other parameters