mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
非法参数的异常统一使用WxPayException
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ public abstract class WxPayServiceAbstractImpl implements WxPayService {
|
||||
@Override
|
||||
public WxPayOrderCloseResult closeOrder(String outTradeNo) throws WxPayException {
|
||||
if (StringUtils.isBlank(outTradeNo)) {
|
||||
throw new IllegalArgumentException("out_trade_no不能为空");
|
||||
throw new WxPayException("out_trade_no不能为空");
|
||||
}
|
||||
|
||||
WxPayOrderCloseRequest request = new WxPayOrderCloseRequest();
|
||||
|
||||
Reference in New Issue
Block a user