@@ -257,8 +257,7 @@ public class AlipayPaymentStrategyImpl implements PaymentStrategy {
}
} catch (AlipayApiException e) {
log.error("支付宝订单查询异常", e);
-// return R.fail("查询异常:" + e.getMessage());
- return null ;
+ return R.fail("查询异常:" + e.getMessage());
@@ -278,8 +278,7 @@ public class WeChatPaymentStrategyImpl implements PaymentStrategy {
return R.data(response);
} catch (WXPayUtility.ApiException e) {
log.error("查询微信支付订单状态失败,状态码:{},错误信息:{}", e.getErrorCode(), e.getMessage());
-// return R.fail(e.getMessage());
- return null;
+ return R.fail(e.getMessage());