From 0c824f2bcefc309da8eaaf77fab730ea2f4439b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 19 Nov 2018 21:35:36 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8DataAccess=E6=A0=87=E5=87=86=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicAliPay.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WeChat/Contracts/BasicAliPay.php b/WeChat/Contracts/BasicAliPay.php index 9a94c62..360d321 100644 --- a/WeChat/Contracts/BasicAliPay.php +++ b/WeChat/Contracts/BasicAliPay.php @@ -96,7 +96,7 @@ abstract class BasicAliPay */ public function query($out_trade_no = '') { - $this->options['method'] = 'alipay.trade.query'; + $this->options->set('method', 'alipay.trade.query'); return $this->getResult(['out_trade_no' => $out_trade_no]); } @@ -110,7 +110,7 @@ abstract class BasicAliPay public function refund($options, $refund_amount = null) { if (!is_array($options)) $options = ['out_trade_no' => $options, 'refund_amount' => $refund_amount]; - $this->options['method'] = 'alipay.trade.refund'; + $this->options->set('method', 'alipay.trade.refund'); return $this->getResult($options); } @@ -123,7 +123,7 @@ abstract class BasicAliPay public function close($options) { if (!is_array($options)) $options = ['out_trade_no' => $options]; - $this->options['method'] = 'alipay.trade.close'; + $this->options->set('method', 'alipay.trade.close'); return $this->getResult($options); }