From cd5ff0228e8bc31e76c2ef753b1313008d8c520f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 2 Jan 2024 17:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=96=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicAliPay.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WeChat/Contracts/BasicAliPay.php b/WeChat/Contracts/BasicAliPay.php index 0eabd5d..6fe3cbf 100644 --- a/WeChat/Contracts/BasicAliPay.php +++ b/WeChat/Contracts/BasicAliPay.php @@ -126,28 +126,28 @@ abstract class BasicAliPay /** * 查询支付宝订单状态 - * @param string $out_trade_no + * @param string $outTradeNo * @return array|boolean * @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\LocalCacheException */ - public function query($out_trade_no = '') + public function query($outTradeNo = '') { $this->options->set('method', 'alipay.trade.query'); - return $this->getResult(['out_trade_no' => $out_trade_no]); + return $this->getResult(['out_trade_no' => $outTradeNo]); } /** * 支付宝订单退款操作 * @param array|string $options 退款参数或退款商户订单号 - * @param null $refund_amount 退款金额 + * @param null $refundAmount 退款金额 * @return array|boolean * @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\LocalCacheException */ - public function refund($options, $refund_amount = null) + public function refund($options, $refundAmount = null) { - if (!is_array($options)) $options = ['out_trade_no' => $options, 'refund_amount' => $refund_amount]; + if (!is_array($options)) $options = ['out_trade_no' => $options, 'refund_amount' => $refundAmount]; $this->options->set('method', 'alipay.trade.refund'); return $this->getResult($options); }